3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dates = array('1-2018','5-2019','10-2018','5-2020','9-1978','6-2001'); usort($dates, function($a,$b){ return strtotime('1-'.$a) <=>strtotime('1-'.$b);}); var_export($dates); echo "\n"; echo "Min: ".reset($dates)."\n"; echo "Max: ".end($dates)."\n";
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => '9-1978', 1 => '6-2001', 2 => '1-2018', 3 => '10-2018', 4 => '5-2019', 5 => '5-2020', ) Min: 9-1978 Max: 5-2020

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:
27.7 ms | 405 KiB | 5 Q