3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pr = array( array( 'id' => 'aaa', 'date' => 'Oct 8, 2006' ), array( 'id' => 'bbb', 'date' => 'Nov 14, 2008'), array( 'id' => 'ccc', 'date' => 'Dec 19, 2014'), array( 'id' => 'ddd', 'date' => 'Feb 4, 2010'), array( 'id' => 'eee', 'date' => 'Jul 7, 2013'), array( 'id' => 'fff', 'date' => 'Mar 6, 2002'), array( 'id' => 'ggg', 'date' => 'Mar 1, 2001'), array( 'id' => 'hhh', 'date' => 'Aug 8, 1999'), array( 'id' => 'iii', 'date' => 'Sep 5, 2007'), array( 'id' => 'jjj', 'date' => 'Apr 13, 2004'), array( 'id' => 'kkk', 'date' => 'Mar 6, 1996'), array( 'id' => 'lll', 'date' => 'Mar 6, 1997'), array( 'id' => 'mmm', 'date' => 'Mar 6, 1998'), array( 'id' => 'nnn', 'date' => 'Mar 6, 1999'), array( 'id' => 'ooo', 'date' => 'Mar 7, 1996'), array( 'id' => 'ppp', 'date' => 'Mar 7, 1997'), array( 'id' => 'qqq', 'date' => 'Mar 7, 2002') ); function cmp($a,$b) { return strtotime($a['date']) < strtotime($b['date']); } usort($pr,'cmp'); print_r($pr);
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: usort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero in /in/7prWJ on line 25 Array ( [0] => Array ( [id] => ccc [date] => Dec 19, 2014 ) [1] => Array ( [id] => eee [date] => Jul 7, 2013 ) [2] => Array ( [id] => ddd [date] => Feb 4, 2010 ) [3] => Array ( [id] => bbb [date] => Nov 14, 2008 ) [4] => Array ( [id] => iii [date] => Sep 5, 2007 ) [5] => Array ( [id] => aaa [date] => Oct 8, 2006 ) [6] => Array ( [id] => jjj [date] => Apr 13, 2004 ) [7] => Array ( [id] => qqq [date] => Mar 7, 2002 ) [8] => Array ( [id] => fff [date] => Mar 6, 2002 ) [9] => Array ( [id] => ggg [date] => Mar 1, 2001 ) [10] => Array ( [id] => hhh [date] => Aug 8, 1999 ) [11] => Array ( [id] => nnn [date] => Mar 6, 1999 ) [12] => Array ( [id] => mmm [date] => Mar 6, 1998 ) [13] => Array ( [id] => ppp [date] => Mar 7, 1997 ) [14] => Array ( [id] => lll [date] => Mar 6, 1997 ) [15] => Array ( [id] => ooo [date] => Mar 7, 1996 ) [16] => Array ( [id] => kkk [date] => Mar 6, 1996 ) )

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:
30.05 ms | 411 KiB | 5 Q