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, 'SORT_LOCALE_STRING'); var_dump($foo == $bar);
based on W8qnQ
Output for hhvm-3.12.0, 7.0.0 - 7.1.0
Warning: ksort() expects parameter 2 to be integer, string given in /in/0HnWv on line 5 bool(true)
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.0 - 5.6.28
Warning: ksort() expects parameter 2 to be long, string given in /in/0HnWv on line 5 bool(true)