3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = 'slug/filename.php'; echo explode( '/', $string )[0];
Output for 5.4.12 - 7.3.0rc4
slug
Output for 5.3.22 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ',' or ';' in /in/ZtJhM on line 5
Process exited with code 255.