3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $foo = array(0,1,2,3,4,40,50,66,72,'f','0','g',4,35,5,654,654,2,2345,456,'asdf'); $bar = array(0,1,2,3,4,40,50,66,72,'f','0','g',4,35,5,654,654,2,2345,456,'asdf'); ksort($foo) ksort($bar) var_dump($foo); var_dump($bar);
based on dRvDo
Output for 5.4.0 - 5.4.32
Parse error: syntax error, unexpected 'ksort' (T_STRING) in /in/8ENqD on line 5
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected T_STRING in /in/8ENqD on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_STRING in /in/8ENqD on line 5
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/8ENqD on line 5
Process exited with code 255.