3v4l.org

run code in 200+ 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 - 7.2.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
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