3v4l.org

run code in 300+ PHP versions simultaneously
<?php $existing_array = [ "ROWID" =>[ 0 => 0, 1 => 1, 2 => 2 ], "First Name" => [ 0 => "BILLY", 1 => "SALLY", 2 => "TYLER" ], "Last Name" => [ 0 => "RAY", 1 => "SUE", 2 => "TERRIER" ], "Middle Name" =>[ 0 => "B.", 1 => "S.", 2 => "T." ] ]; $expected_array = ['ROWID'=>$existing_array['ROWID'],'First Name'=>$existing_array['First Name'],'Middle Name'=>$existing_array['Middle Name'],'Last Name'=>$existing_array['Last Name']]; print_r($expected_array);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [ROWID] => Array ( [0] => 0 [1] => 1 [2] => 2 ) [First Name] => Array ( [0] => BILLY [1] => SALLY [2] => TYLER ) [Middle Name] => Array ( [0] => B. [1] => S. [2] => T. ) [Last Name] => Array ( [0] => RAY [1] => SUE [2] => TERRIER ) )

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
162.38 ms | 406 KiB | 5 Q