online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
<?php function minimums($array1, $array2) { $result = []; sort($array2); for ($i = 0; $i < count($array1); $i++) $result[] = $array1[$i] + $array2[$i]; return $result; } $array1 = [3, 5, 1]; $array2 = [2, 7, 1]; print_r(minimums($array1, $array2));

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue