3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php defined('SORT_FLAG_CASE') or define('SORT_FLAG_CASE', false); echo 'SORT_FLAG_CASE : '.SORT_FLAG_CASE."\n"; $arr = array('foo' => 2,'Bar' => 1, 'bar' => 3, 'a' => 0); if(SORT_FLAG_CASE) ksort($arr, SORT_STRING|SORT_FLAG_CASE); else natcasesort($array) var_dump($arr);
Output for 5.4.0 - 5.4.14
Parse error: syntax error, unexpected 'var_dump' (T_STRING) in /in/tuPKi on line 9
Process exited with code 255.
Output for 5.3.0 - 5.3.24
Parse error: syntax error, unexpected T_STRING in /in/tuPKi on line 9
Process exited with code 255.