3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $empty= ''; for($i = 0; $i < 10; $i++) if ($empty['blablabv'] == ''){ echo 'cool'; }
Output for 5.4.0 - 7.1.0
Warning: Illegal string offset 'blablabv' in /in/prM0M on line 4 Notice: Uninitialized string offset: 0 in /in/prM0M on line 4 cool Warning: Illegal string offset 'blablabv' in /in/prM0M on line 4 Notice: Uninitialized string offset: 0 in /in/prM0M on line 4 cool Warning: Illegal string offset 'blablabv' in /in/prM0M on line 4 Notice: Uninitialized string offset: 0 in /in/prM0M on line 4 cool Warning: Illegal string offset 'blablabv' in /in/prM0M on line 4 Notice: Uninitialized string offset: 0 in /in/prM0M on line 4 cool Warning: Illegal string offset 'blablabv' in /in/prM0M on line 4 Notice: Uninitialized string offset: 0 in /in/prM0M on line 4 cool Warning: Illegal string offset 'blablabv' in /in/prM0M on line 4 Notice: Uninitialized string offset: 0 in /in/prM0M on line 4 cool Warning: Illegal string offset 'blablabv' in /in/prM0M on line 4 Notice: Uninitialized string offset: 0 in /in/prM0M on line 4 cool Warning: Illegal string offset 'blablabv' in /in/prM0M on line 4 Notice: Uninitialized string offset: 0 in /in/prM0M on line 4 cool Warning: Illegal string offset 'blablabv' in /in/prM0M on line 4 Notice: Uninitialized string offset: 0 in /in/prM0M on line 4 cool Warning: Illegal string offset 'blablabv' in /in/prM0M on line 4 Notice: Uninitialized string offset: 0 in /in/prM0M on line 4 cool
Output for 5.2.10 - 5.3.29
Notice: Uninitialized string offset: 0 in /in/prM0M on line 4 cool Notice: Uninitialized string offset: 0 in /in/prM0M on line 4 cool Notice: Uninitialized string offset: 0 in /in/prM0M on line 4 cool Notice: Uninitialized string offset: 0 in /in/prM0M on line 4 cool Notice: Uninitialized string offset: 0 in /in/prM0M on line 4 cool Notice: Uninitialized string offset: 0 in /in/prM0M on line 4 cool Notice: Uninitialized string offset: 0 in /in/prM0M on line 4 cool Notice: Uninitialized string offset: 0 in /in/prM0M on line 4 cool Notice: Uninitialized string offset: 0 in /in/prM0M on line 4 cool Notice: Uninitialized string offset: 0 in /in/prM0M on line 4 cool
Output for 4.3.0 - 5.2.9
Notice: Uninitialized string offset: 0 in /in/prM0M on line 4 cool Notice: Uninitialized string offset: 0 in /in/prM0M on line 4 cool Notice: Uninitialized string offset: 0 in /in/prM0M on line 4 cool Notice: Uninitialized string offset: 0 in /in/prM0M on line 4 cool Notice: Uninitialized string offset: 0 in /in/prM0M on line 4 cool Notice: Uninitialized string offset: 0 in /in/prM0M on line 4 cool Notice: Uninitialized string offset: 0 in /in/prM0M on line 4 cool Notice: Uninitialized string offset: 0 in /in/prM0M on line 4 cool Notice: Uninitialized string offset: 0 in /in/prM0M on line 4 cool Notice: Uninitialized string offset: 0 in /in/prM0M on line 4 cool