3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(range(100, 3e17 + 100));
Output for 8.3.0 - 8.3.6
Fatal error: Uncaught ValueError: The supplied range exceeds the maximum array size: start=100.0 end=300000000000000128.0 step=1.0 in /in/BDIsR:2 Stack trace: #0 /in/BDIsR(2): range(100, 3.0E+17) #1 {main} thrown in /in/BDIsR on line 2
Process exited with code 255.
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18
Fatal error: Uncaught ValueError: The supplied range exceeds the maximum array size: start=100 end=300000000000000128 in /in/BDIsR:2 Stack trace: #0 /in/BDIsR(2): range(100, 3.0E+17) #1 {main} thrown in /in/BDIsR on line 2
Process exited with code 255.
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Warning: range(): The supplied range exceeds the maximum array size: start=100 end=300000000000000128 in /in/BDIsR on line 2 bool(false)
Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.30
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/BDIsR on line 2
Process exited with code 255.

preferences:
209.19 ms | 402 KiB | 331 Q