3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = [[x=>1]] $base = explode(".", $class)[0]; echo $x: echo $base;
Output for 5.4.0 - 5.4.12
Parse error: syntax error, unexpected '$base' (T_VARIABLE) in /in/vmdmO on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.22
Parse error: syntax error, unexpected '[' in /in/vmdmO on line 2
Process exited with code 255.