3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array ( array("DATE" => "2007-01-12", "STUFF"=>"bleh"), array("DATE" => "2007-01-13", "STUFF"=>"bleh"), array("DATE" => "2007-01-01", "STUFF"=>"bleh") ); function cmp($a, $b){ if ($a["DATE"] == $b["DATE"]) return 0; return ($a["DATE"] < $b["DATE"]) ? -1 : 1; } usort($a, "cmp"); var_dump($a);
Output for git.master, git.master_jit, rfc.property-hooks
array(3) { [0]=> array(2) { ["DATE"]=> string(10) "2007-01-01" ["STUFF"]=> string(4) "bleh" } [1]=> array(2) { ["DATE"]=> string(10) "2007-01-12" ["STUFF"]=> string(4) "bleh" } [2]=> array(2) { ["DATE"]=> string(10) "2007-01-13" ["STUFF"]=> string(4) "bleh" } }

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