3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $myarray = array("Apples", "Oranges", "Pears"); $size = count($myarray); var_dump($myarray); ?>
based on cbvsG
Output for 4.3.0 - 7.2.0
array(3) { [0]=> string(6) "Apples" [1]=> string(7) "Oranges" [2]=> string(5) "Pears" }