3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $myArray = array(1,2,3,4,5,6,7,8,9,10); $counter = 0; while($counter < sizeof($myarray) ) { print $counter."..."; $counter++; }
based on BpMHV
Output for 7.2.0 - 7.3.0rc4
Notice: Undefined variable: myarray in /in/mbUDf on line 7 Warning: sizeof(): Parameter must be an array or an object that implements Countable in /in/mbUDf on line 7
Output for 5.5.0 - 7.1.20
Notice: Undefined variable: myarray in /in/mbUDf on line 7