3v4l.org

run code in 300+ PHP versions simultaneously
<?php $files = [ 0 => 'scpt-01-2010.phtml', 1 => 'scpt-01-2011.phtml', 2 => 'scpt-02-2010.phtml', 3 => 'scpt-02-2011.phtml', 4 => 'scpt-03-2010.phtml', 5 => 'scpt-04-2010.phtml', 6 => 'scpt-05-2010.phtml', 7 => 'scpt-06-2010.phtml', 8 => 'scpt-07-2010.phtml', 9 => 'scpt-08-2010.phtml', 10 => 'scpt-09-2010.phtml', 11 => 'scpt-10-2010.phtml', 12 => 'scpt-11-2010.phtml', 13 => 'scpt-12-2010.phtml', ]; usort($files, function ($a, $b) { return array_reverse(explode('-', $b, 3)) <=> array_reverse(explode('-', $a, 3)); }); var_export($files);
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => 'scpt-02-2011.phtml', 1 => 'scpt-01-2011.phtml', 2 => 'scpt-12-2010.phtml', 3 => 'scpt-11-2010.phtml', 4 => 'scpt-10-2010.phtml', 5 => 'scpt-09-2010.phtml', 6 => 'scpt-08-2010.phtml', 7 => 'scpt-07-2010.phtml', 8 => 'scpt-06-2010.phtml', 9 => 'scpt-05-2010.phtml', 10 => 'scpt-04-2010.phtml', 11 => 'scpt-03-2010.phtml', 12 => 'scpt-02-2010.phtml', 13 => 'scpt-01-2010.phtml', )

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