3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $strings = array('SS2014', 'SU2014','FW2014','SS2013','SU2013','FW2013'); $results = array(); sort($strings); echo 'using normal sort' var_dump($strings); ksort($strings); echo 'using ksort' var_dump($strings); ntsort($strings); echo 'using ntsort' var_dump($strings);
Output for 5.4.0 - 5.4.30
Parse error: syntax error, unexpected 'var_dump' (T_STRING), expecting ',' or ';' in /in/R6bP2 on line 8
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /in/R6bP2 on line 8
Process exited with code 255.