3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $pok =''; if (!(($pok!='') || ($pok['co']!=' '))){ echo '<br>neni prazdny<br>'; } else { echo '<br>je prazdny<br>'; }
Output for 5.4.0 - 7.1.0
Warning: Illegal string offset 'co' in /in/Do5ga on line 3 Notice: Uninitialized string offset: 0 in /in/Do5ga on line 3 <br>je prazdny<br>
Output for 5.2.10 - 5.3.29
Notice: Uninitialized string offset: 0 in /in/Do5ga on line 3 <br>je prazdny<br>
Output for 4.3.0 - 5.2.9
Notice: Uninitialized string offset: 0 in /in/Do5ga on line 3 <br>je prazdny<br>