3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $var =''; if(!$var[0]){ echo 'var is empty'; } echo '<hr/>';
Output for 5.3.28 - 5.3.29, 5.4.20 - 7.2.0
Notice: Uninitialized string offset: 0 in /in/5ulVA on line 4 var is empty<hr/>
Output for 5.2.10 - 5.3.27, 5.4.0 - 5.4.19
Notice: Uninitialized string offset: 0 in /in/EZliH on line 4 var is empty<hr/>
Output for 4.3.1 - 5.2.9
Notice: Uninitialized string offset: 0 in /in/EZliH on line 4 var is empty<hr/>
Output for 4.3.0
Notice: Uninitialized string offset: 0 in /in/5ulVA on line 4 var is empty<hr/>