3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 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 = DateTime::createFromFormat("d/m/Y", $a["day"].'/'.$a["month"].'/'.$a["year"]); $date2 = DateTime::createFromFormat("d/m/Y", $b["day"].'/'.$b["month"].'/'.$b["year"]); return $date1->getTimestamp() - $date2->getTimestamp(); } usort($a, "cmp"); print_r($a);
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:
42.21 ms | 402 KiB | 8 Q