3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = array( 0 => 'x', 1 => 'y', 2 => 'z', ); echo $array[false]; echo $array[null];
based on FWXWg
Output for 5.3.0 - 5.6.38, hhvm-3.10.1 - 3.21.0, 7.0.0 - 7.2.11
x Notice: Undefined index: in /in/2R9gj on line 10
Output for hhvm-3.21.3 - 3.22.0
x Notice: Undefined index: in /in/2R9gj on line -1
Output for 4.3.0 - 5.2.17
x Notice: Undefined index: in /in/2R9gj on line 10