online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
<?php /****************************************************************************** Welcome to GDB Online. GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl, C#, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog. Code, Compile, Run and Debug online from anywhere in world. *******************************************************************************/ $array1=array( "0" => array( "email" => "[email protected]", "name" => "user1", "type" => "team" ), "1" => array( "email" => "[email protected]", "name" => "user2", "type" => "individual" ), "2" => array( "email" => "[email protected]", "name" => "user3", "type" => "individual" ), "3" => array( "email" => "[email protected]", "name" => "user4", "type" => "individual" ) ); $array2=array( "0" => array( "email" => "[email protected]", "status" => "selected" ), "1" => array( "email" => "[email protected]", "status" => "selected" ) ); foreach($array1 as &$val1){ foreach ($array2 as $val2){ if($val1['email']==$val2['email']){ $val1['status']=$val2['status']; } } } unset($val1); //Se elimina la referencia print_r($array1);

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