3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array( "1"=>array( "id"=>1, "name"=>"Test #1", "listorder"=>1), "6"=>array( "id"=>6, "name"=>"Test #1", "listorder"=>3), "2"=>array( "id"=>2, "name"=>"Test #2", "listorder"=>2) ); uasort($data,function($a,$b){ return strcmp($a["listorder"],$b["listorder"]); }); print_r($data);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [1] => Array ( [id] => 1 [name] => Test #1 [listorder] => 1 ) [2] => Array ( [id] => 2 [name] => Test #2 [listorder] => 2 ) [6] => Array ( [id] => 6 [name] => Test #1 [listorder] => 3 ) )

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