3v4l.org

run code in 150+ 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 - 5.6.28, 7.0.0 - 7.1.0
Notice: Uninitialized string offset: 0 in /in/5ulVA on line 4 var is empty<hr/>
Output for hhvm-3.12.0
var is empty<hr/>
Output for hhvm-3.10.0

Process exited with code 153.
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/>