3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myArr = array ( "John" => array ( "height"=>175, "weight"=>85, "age"=>"24" ), "Phil" => array ( "height"=>145, "weight"=>75, "age"=>"22" ), "Jim" => array ( "height"=>195, "weight"=>140, "age"=>"29" ) ); // sort by height $sorter = function($a,$b){return $a['height'] - $b['height'];}; usort($myArr, $sorter); print_r($myArr);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [height] => 145 [weight] => 75 [age] => 22 ) [1] => Array ( [height] => 175 [weight] => 85 [age] => 24 ) [2] => Array ( [height] => 195 [weight] => 140 [age] => 29 ) )

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:
76.74 ms | 402 KiB | 8 Q