3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $e=explode(".","image.jpg"); echo count($e); echo $e[1]; echo $e[2]; ?>
based on MIiDG
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
2jpg Notice: Undefined offset: 2 in /in/a0ppv on line 5
Output for hhvm-3.12.0
2jpg Notice: Undefined index: 2 in /in/a0ppv on line 5
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.0 - 5.2.17
2jpg Notice: Undefined offset: 2 in /in/a0ppv on line 5