3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $test = array(); $test[0] = ""; array_push($test[0],0); echo $test[0]; ?>
Output for 5.3.0 - 7.1.0
Warning: array_push() expects parameter 1 to be array, string given in /in/8s2hd on line 4
Output for 4.3.2 - 5.2.17
Warning: array_push(): First argument should be an array in /in/8s2hd on line 4
Output for 4.3.0 - 4.3.1
Warning: array_push() [http://www.php.net/function.array-push]: First argument should be an array in /in/8s2hd on line 4