3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo explode('d','dadad')[1]; ?>
Output for 5.4.25 - 7.2.0
a
Output for 5.3.29
Parse error: syntax error, unexpected '[', expecting ',' or ';' in /in/g1U5F on line 1
Process exited with code 255.
Output for 4.3.0
Parse error: parse error, unexpected '[', expecting ',' or ';' in /in/g1U5F on line 1
Process exited with code 255.