3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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 7.0.0 - 7.1.0
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.
Output for hhvm-3.12.0
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}
Process exited with code 255.
Output for 5.0.0 - 5.6.28, hhvm-3.10.0
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: Call to undefined function ort() in /in/ve23u on line 4
Process exited with code 255.
Output for 4.4.5 - 4.4.9
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: Call to undefined function: ort() in /in/ve23u on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.4
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: Call to undefined function: ort() in /in/ve23u on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
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: Call to undefined function: ort() in /in/ve23u on line 4