3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i=0; $tmp=''; while($i<10000) { $tmp.='a'; ++$i; } $test = array_fill(100000000000000000000000, 100, $tmp); for($a=0; $a<count($test); $a++){} ?>
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Fatal error: Uncaught TypeError: array_fill(): Argument #1 ($start_index) must be of type int, float given in /in/eEHGG:9 Stack trace: #0 /in/eEHGG(9): array_fill(1.0E+23, 100, 'aaaaaaaaaaaaaaa...') #1 {main} thrown in /in/eEHGG on line 9
Process exited with code 255.
Output for 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Warning: array_fill() expects parameter 1 to be int, 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.2.0 - 7.2.33
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.0.20, 7.1.0 - 7.1.33
Warning: array_fill() expects parameter 1 to be integer, float given in /in/eEHGG on line 9
Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.30

preferences:
189.48 ms | 402 KiB | 332 Q