3v4l.org

run code in 300+ PHP versions simultaneously
<?php range(0, pow(2.0, 100000000));
Output for 8.3.0 - 8.3.6
Fatal error: Uncaught ValueError: range(): Argument #2 ($end) must be a finite number, INF provided in /in/ToUVn:2 Stack trace: #0 /in/ToUVn(2): range(0, INF) #1 {main} thrown in /in/ToUVn 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: Invalid range supplied: start=0 end=inf in /in/ToUVn:2 Stack trace: #0 /in/ToUVn(2): range(0, INF) #1 {main} thrown in /in/ToUVn on line 2
Process exited with code 255.
Output for 7.2.29 - 7.2.33, 7.3.16 - 7.3.33, 7.4.3 - 7.4.33
Warning: range(): Invalid range supplied: start=0 end=inf in /in/ToUVn on line 2
Output for 5.4.6 - 5.4.44
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/ToUVn on line 2
Process exited with code 255.

preferences:
205.52 ms | 401 KiB | 177 Q