3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = ''; var_export($test[0]); $anothertest = 'a'; var_export($anothertest[0]); var_export($anothertest[1]);
Output for 5.2.10 - 7.2.0
Notice: Uninitialized string offset: 0 in /in/DtB7b on line 4 '''a' Notice: Uninitialized string offset: 1 in /in/DtB7b on line 9 ''
Output for 4.3.0 - 5.2.9
Notice: Uninitialized string offset: 0 in /in/DtB7b on line 4 '''a' Notice: Uninitialized string offset: 1 in /in/DtB7b on line 9 ''