3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = ''; var_dump(explode(',',$a)); echo $a[1];
based on DO7p9
Output for 5.2.10 - 7.2.0
array(1) { [0]=> string(0) "" } Notice: Uninitialized string offset: 1 in /in/vciNp on line 5
Output for 4.3.0 - 5.2.9
array(1) { [0]=> string(0) "" } Notice: Uninitialized string offset: 1 in /in/vciNp on line 5