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" ) ); $array3 = []; foreach(\array_merge($array1, $array2) as $item) { $array3[$item['email']] = \array_merge($array3[$item['email']] ?? [], $item); } $array3 = \array_values($array3); print_r($array3);

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