3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array( array( "title" => "Another title", "date" => "Fri, 17 Jun 2011 08:55:57 +0200" ), array( "title" => "My title", "date" => "Mon, 16 Jun 2010 06:55:57 +0200" ) ); usort($data, function ( $a, $b ) { return strtotime($a["date"]) - strtotime($b["date"]); }); var_dump($data);
Output for git.master, git.master_jit, rfc.property-hooks
array(2) { [0]=> array(2) { ["title"]=> string(8) "My title" ["date"]=> string(31) "Mon, 16 Jun 2010 06:55:57 +0200" } [1]=> array(2) { ["title"]=> string(13) "Another title" ["date"]=> string(31) "Fri, 17 Jun 2011 08:55:57 +0200" } }

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:
69.24 ms | 401 KiB | 8 Q