3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $i=0; $tmp=''; while($i<10000) { $tmp.='a'; ++$i; } $test = array_fill(100000000000000000000000, 100, $tmp); for($a=0; $a<count($test); $a++){} ?>
based on MX7Ds
Output for 7.2.0
Warning: array_fill() expects parameter 1 to be integer, float given in /in/eEHGG on line 9 Warning: count(): Parameter must be an array or an object that implements Countable in /in/eEHGG on line 10
Output for 7.0.0 - 7.1.10
Warning: array_fill() expects parameter 1 to be integer, float given in /in/eEHGG on line 9
Output for hhvm-3.11.1 - 3.17.3
Warning: array_fill() expects parameter 1 to be integer, double given in /in/eEHGG on line 9
Output for 5.4.0 - 5.6.30, hhvm-3.10.1