3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( 0=>array( "id"=>"73", "position"=>"1" ), 1=>array( "id"=>"58", "position"=>"2" ), 2=>array( "id"=>"82", "position"=>"3" ), 3=>array( "id"=>"84", "position"=>"4" ) ); $array = array_combine(range(1, count($array)), $array); print_r($array);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [1] => Array ( [id] => 73 [position] => 1 ) [2] => Array ( [id] => 58 [position] => 2 ) [3] => Array ( [id] => 82 [position] => 3 ) [4] => Array ( [id] => 84 [position] => 4 ) )

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:
119.83 ms | 406 KiB | 5 Q