3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a=array("14-10-2013","15-10-2013","16-10-2013","13-11-2013","17-11-2013","18-10-2013","19-10-2013"); asort(strtotime($a)); print_r($a);
Output for 7.0.0 - 7.1.0
Warning: strtotime() expects parameter 1 to be string, array given in /in/CuK7L on line 4 Notice: Only variables should be passed by reference in /in/CuK7L on line 4 Warning: asort() expects parameter 1 to be array, boolean given in /in/CuK7L on line 4 Array ( [0] => 14-10-2013 [1] => 15-10-2013 [2] => 16-10-2013 [3] => 13-11-2013 [4] => 17-11-2013 [5] => 18-10-2013 [6] => 19-10-2013 )
Output for hhvm-3.10.0 - 3.12.0
Warning: strtotime() expects parameter 1 to be string, array given in /in/CuK7L on line 4 Warning: Invalid operand type was used: asort expects array(s) or collection(s) in /in/CuK7L on line 4 Array ( [0] => 14-10-2013 [1] => 15-10-2013 [2] => 16-10-2013 [3] => 13-11-2013 [4] => 17-11-2013 [5] => 18-10-2013 [6] => 19-10-2013 )
Output for 5.2.1 - 5.6.28
Warning: strtotime() expects parameter 1 to be string, array given in /in/CuK7L on line 4 Strict Standards: Only variables should be passed by reference in /in/CuK7L on line 4 Warning: asort() expects parameter 1 to be array, boolean given in /in/CuK7L on line 4 Array ( [0] => 14-10-2013 [1] => 15-10-2013 [2] => 16-10-2013 [3] => 13-11-2013 [4] => 17-11-2013 [5] => 18-10-2013 [6] => 19-10-2013 )
Output for 5.1.0 - 5.2.0
Strict Standards: Only variables should be passed by reference in /in/CuK7L on line 4 Warning: asort() expects parameter 1 to be array, boolean given in /in/CuK7L on line 4 Array ( [0] => 14-10-2013 [1] => 15-10-2013 [2] => 16-10-2013 [3] => 13-11-2013 [4] => 17-11-2013 [5] => 18-10-2013 [6] => 19-10-2013 )
Output for 5.0.5
Notice: Array to string conversion in /in/CuK7L on line 4 Fatal error: Only variables can be passed by reference in /in/CuK7L on line 4
Process exited with code 255.
Output for 4.3.0 - 5.0.4
Notice: Array to string conversion in /in/CuK7L on line 4 Warning: asort() expects parameter 1 to be array, integer given in /in/CuK7L on line 4 Array ( [0] => 14-10-2013 [1] => 15-10-2013 [2] => 16-10-2013 [3] => 13-11-2013 [4] => 17-11-2013 [5] => 18-10-2013 [6] => 19-10-2013 )