3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tableau = array ( 'blabla 2015-01-01 taratata1', 'blabla2 2016-01-01 taratata2', 'blabla3 2010-01-01 taratata3', ); usort( $tableau, function($a, $b) { $a = explode("\t", $a); $b = explode("\t", $b); return $a[1] < $b[1]; // descendant } ); print_r($tableau);
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/MWcII on line 9 Array ( [0] => blabla2 2016-01-01 taratata2 [1] => blabla 2015-01-01 taratata1 [2] => blabla3 2010-01-01 taratata3 )

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:
38.43 ms | 406 KiB | 5 Q