3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = Array ( [0] => book1.pdf [1] => book11.pdf [2] => book12.pdf [3] => book2.pdf ) print_r(sort($a));
Output for 5.4.0 - 5.4.20
Parse error: syntax error, unexpected '[', expecting ')' in /in/7vmE9 on line 6
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected '[', expecting ')' in /in/7vmE9 on line 5
Process exited with code 255.