3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array(array("data" => "abcd", "edit" => "1", "day" => "05", "month" => "04", "year" => "2013"), array("data" => "efgh", "edit" => "2", "day" => "07", "month" => "03", "year" => "2013")); function cmp($a, $b) { $date1 = strtotime($a['year'] . "-" . $a['month'] . "-" . $a['day']); $date2 = strtotime($b['year'] . "-" . $b['month'] . "-" . $b['day']); return $date1 - $date2; } usort($array, "cmp"); print_r($array);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [data] => efgh [edit] => 2 [day] => 07 [month] => 03 [year] => 2013 ) [1] => Array ( [data] => abcd [edit] => 1 [day] => 05 [month] => 04 [year] => 2013 ) )

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.75 ms | 402 KiB | 8 Q