3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array=array("2009-01-01 00:00:00", "2008-01-01 00:00:00", "0000-00-00 00:00:00", "0000-00-00 00:00:00", "0000-00-00 00:00:00", "2006-01-01 00:00:00", "2006-01-01 00:00:00"); print_r($array); ort($array,SORT_STRING); print_r($array); $array=array_reverse($array);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => 2009-01-01 00:00:00 [1] => 2008-01-01 00:00:00 [2] => 0000-00-00 00:00:00 [3] => 0000-00-00 00:00:00 [4] => 0000-00-00 00:00:00 [5] => 2006-01-01 00:00:00 [6] => 2006-01-01 00:00:00 ) Fatal error: Uncaught Error: Call to undefined function ort() in /in/ve23u:4 Stack trace: #0 {main} thrown in /in/ve23u on line 4
Process exited with code 255.

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:
52.1 ms | 402 KiB | 8 Q