3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = "aaa|bbb"; echo explode('|', $a)[0];
based on QYvGg
Output for 5.4.0 - 7.2.0
aaa
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ',' or ';' in /in/d2laY on line 3
Process exited with code 255.