3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = '/admin/dupa/asdff/dupa'; $b = explode('/', $a); if ($b[1] == 'admin') { var_dump('asdf'); }
based on AvjuJ
Output for 5.6.0 - 7.2.8
string(4) "asdf"