3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php$foo = ['10' => "foo", '101' => 'bar', '20' => 'foobar'];var_dump(ksort($foo, SORT_NUMERIC));
based on GCpM5
Output for 5.4.34
Parse error: syntax error, unexpected '$foo' (T_VARIABLE) in /in/aMG0v on line 1
Process exited with code 255.
Output for 5.4.0 - 5.4.32
<?php$foo = ['10' => "foo", '101' => 'bar', '20' => 'foobar'];var_dump(ksort($foo, SORT_NUMERIC));