3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = array( '' => 1, null => 2, false => 3, 'foo' => 4, ); var_dump($array[''], $array[null], $array[false], $array['foo']);
Output for 4.3.2 - 7.2.0
int(2) int(2) int(3) int(4)
Output for 4.3.0 - 4.3.1
Notice: Undefined offset: 0 in /in/LSh0b on line 10 int(2) int(2) NULL int(4)