3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = array("foo", "bar", "hallo", "world"); var_dump($array);$imput=array("a","2"); var_dump($input[0]); ?>
Output for 5.0.4 - 7.2.0
array(4) { [0]=> string(3) "foo" [1]=> string(3) "bar" [2]=> string(5) "hallo" [3]=> string(5) "world" } Notice: Undefined variable: input in /in/tNjie on line 4 NULL
Output for 4.3.0 - 5.0.3
array(4) { [0]=> string(3) "foo" [1]=> string(3) "bar" [2]=> string(5) "hallo" [3]=> string(5) "world" } Notice: Undefined variable: input in /in/tNjie on line 4 NULL