3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = false; $b = ''; $c = 0; $d = array(); $a['x']; $b['x']; $c['x']; $d['x'];
Output for 5.4.0 - 5.6.25, 7.0.0 - 7.1.0
Warning: Illegal string offset 'x' in /in/8GNfY on line 8 Notice: Uninitialized string offset: 0 in /in/8GNfY on line 8 Notice: Undefined index: x in /in/8GNfY on line 10
Output for 5.3.0 - 5.3.29, hhvm-3.10.0 - 3.12.0
Notice: Undefined index: x in /in/8GNfY on line 10
Output for 4.3.0 - 5.2.17
Notice: Undefined index: x in /in/8GNfY on line 10