3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php println '$a = array(0, "a");'; $a = array(0,"a"); sort($a); println 'sort($a);'; var_dump($a); sort($a); println 'sort($a);';var_dump($a); sort($a); println 'sort($a);';var_dump($a); sort($a); println 'sort($a);';var_dump($a);
based on Kf1Jp
Output for 5.4.12 - 7.0.2
Parse error: syntax error, unexpected ''$a = array(0, "a");'' (T_CONSTANT_ENCAPSED_STRING) in /in/7kVTq on line 2
Process exited with code 255.
Output for 5.3.22 - 5.3.29
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /in/7kVTq on line 2
Process exited with code 255.