3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $foo = null; $foo[] = 'bar'; var_dump($foo);
Output for 4.3.0 - 5.6.17, 5.6.19 - 7.1.0
array(1) { [0]=> string(3) "bar" }
Output for 5.6.18

Process exited with code 137.