3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $name = array("Hallo", "Dag" , "Hoi" ); print_r($name); array_push($name, Doei); print_r($name); ?>
Output for 7.2.0 - 7.3.0rc4
Array ( [0] => Hallo [1] => Dag [2] => Hoi ) Warning: Use of undefined constant Doei - assumed 'Doei' (this will throw an Error in a future version of PHP) in /in/BVLr6 on line 6 Array ( [0] => Hallo [1] => Dag [2] => Hoi [3] => Doei )
Output for 4.3.0 - 7.1.20
Array ( [0] => Hallo [1] => Dag [2] => Hoi ) Notice: Use of undefined constant Doei - assumed 'Doei' in /in/BVLr6 on line 6 Array ( [0] => Hallo [1] => Dag [2] => Hoi [3] => Doei )