3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $testArray = array('2DAYSALEGATE_PG1.jpg','2DAYSALEGATE_PG2.jpg','722_PG1.jpg','PW_PG2_COKE_A.jpg','PW_PG3_COKE_A.jpg','PWBY4_DELI-1.jpg'); sort($testArray, SORT_NATURAL) print_r($testArray);
Output for 5.4.0 - 5.4.24
Parse error: syntax error, unexpected 'print_r' (T_STRING) in /in/ueNSk on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING in /in/ueNSk on line 5
Process exited with code 255.