3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function main() { $a = array('dog', 'cat', 'zebra', 'elephant', 'lion', 'tiger', 'squirrel', 'leopard', 'giraff'); return var_dump($a); } main();
based on QcTbl
Output for 4.3.0 - 7.2.0
array(9) { [0]=> string(3) "dog" [1]=> string(3) "cat" [2]=> string(5) "zebra" [3]=> string(8) "elephant" [4]=> string(4) "lion" [5]=> string(5) "tiger" [6]=> string(8) "squirrel" [7]=> string(7) "leopard" [8]=> string(6) "giraff" }