3v4l.org

run code in 300+ PHP versions simultaneously
<?php print("Original: "); print(ini_get('memory_limit')); ini_set('memory_limit', -1); print(", New: "); print(ini_get('memory_limit')); print("\n"); $x = "123456789ABCDEF"; while (true) $x .= $x; ?>
Output for 8.2.18 - 8.2.29, 8.3.5 - 8.3.26, 8.4.1 - 8.4.13
Original: 64M, New: -1 Fatal error: Out of memory (allocated 35655680 bytes) (tried to allocate 62914592 bytes) in /in/OtvMD on line 14 mmap() failed: [12] Cannot allocate memory mmap() failed: [12] Cannot allocate memory
Process exited with code 255.
Output for 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
Original: 64M, New: -1 Fatal error: Out of memory (allocated 19927040 bytes) (tried to allocate 31457312 bytes) in /in/OtvMD on line 14 mmap() failed: [12] Cannot allocate memory mmap() failed: [12] Cannot allocate memory
Process exited with code 255.
Output for 7.3.23 - 7.3.31, 7.3.33, 7.4.12 - 7.4.32, 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.1, 8.1.28 - 8.1.33
Original: 64M, New: -1 Fatal error: Out of memory (allocated 35655680) (tried to allocate 62914592 bytes) in /in/OtvMD on line 14 mmap() failed: [12] Cannot allocate memory mmap() failed: [12] Cannot allocate memory
Process exited with code 255.
Output for 8.1.2 - 8.1.27
Original: 64M, New: -1 Fatal error: Out of memory (allocated 19927040) (tried to allocate 31457312 bytes) in /in/OtvMD on line 14 mmap() failed: [12] Cannot allocate memory mmap() failed: [12] Cannot allocate memory
Process exited with code 255.
Output for 8.0.13
Original: 128M, New: -1 Fatal error: Out of memory (allocated 130027520) (tried to allocate 251658272 bytes) in /in/OtvMD on line 14 mmap() failed: [12] Cannot allocate memory mmap() failed: [12] Cannot allocate memory
Process exited with code 255.
Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.32, 7.2.0 - 7.2.33, 7.3.0 - 7.3.21, 7.4.0 - 7.4.11, 7.4.33
Original: 64M, New: -1 Fatal error: Out of memory (allocated 130027520) (tried to allocate 251658272 bytes) in /in/OtvMD on line 14 mmap() failed: [12] Cannot allocate memory mmap() failed: [12] Cannot allocate memory
Process exited with code 255.
Output for 7.3.32
Original: 128M, New: -1 Fatal error: Out of memory (allocated 130027520) (tried to allocate 251658272 bytes) in /in/OtvMD on line 14 mmap() failed: [12] Cannot allocate memory mmap() failed: [12] Cannot allocate memory mmap() failed: [12] Cannot allocate memory
Process exited with code 255.
Output for 5.2.1 - 5.2.17, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40
Original: 64M, New: -1 Fatal error: Out of memory (allocated 252182528) (tried to allocate 503316481 bytes) in /in/OtvMD on line 14 zend_mm_heap corrupted
Process exited with code 1.
Output for 5.3.0 - 5.3.29
Original: 64M, New: -1 Fatal error: Out of memory (allocated 252706816) (tried to allocate 503316481 bytes) in /in/OtvMD on line 14 zend_mm_heap corrupted
Process exited with code 1.
Output for 5.2.0
Original: , New: Fatal error: Out of memory (allocated 252182528) (tried to allocate 503316481 bytes) in /in/OtvMD on line 14
Process exited with code 255.
Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6
Original: , New: FATAL: erealloc(): Unable to allocate 503316481 bytes
Process exited with code 1.
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9
Original: , New: FATAL: erealloc(): Unable to allocate 251658241 bytes
Process exited with code 1.

preferences:
179.96 ms | 422 KiB | 5 Q