3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $stack = array("orange", "banana"); array_push($stack, "apple", "raspberry"); var_dump($stack);
based on k69vS
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0beta1
array(4) { [0]=> string(6) "orange" [1]=> string(6) "banana" [2]=> string(5) "apple" [3]=> string(9) "raspberry" }