3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('memory_limit', -1); var_dump(unserialize('a:1200000000:{s:3:"foo";a:2:{i:0;i:1;i:1;i:2;}'));
Output for 8.3.0 - 8.3.4
Warning: unserialize(): Error at offset 14 of 46 bytes in /in/38adF on line 4 bool(false)
Output for 7.4.0 - 7.4.25, 7.4.27 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17
Notice: unserialize(): Error at offset 14 of 46 bytes in /in/38adF on line 4 bool(false)
Output for 7.4.26
bool(false)
Output for 7.3.0 - 7.3.33
Fatal error: Out of memory (allocated 2097152) (tried to allocate 68719476736 bytes) in /in/38adF on line 4 mmap() failed: [12] Cannot allocate memory mmap() failed: [12] Cannot allocate memory
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
Fatal error: Out of memory (allocated 2097152) (tried to allocate 77309411328 bytes) in /in/38adF on line 4 mmap() failed: [12] Cannot allocate memory mmap() failed: [12] Cannot allocate memory
Process exited with code 255.
Output for 5.2.2 - 5.2.17, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.28
Fatal error: Out of memory (allocated 262144) (tried to allocate 17179869184 bytes) in /in/38adF on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Fatal error: Out of memory (allocated 786432) (tried to allocate 17179869184 bytes) in /in/38adF on line 4
Process exited with code 255.
Output for 5.2.1
Fatal error: Allowed memory size of -1 bytes exhausted (tried to allocate 0 bytes) in /in/38adF on line 4
Process exited with code 255.
Output for 5.2.0
Fatal error: Out of memory (allocated 262144) (tried to allocate 0 bytes) in /in/38adF on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.3, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6

Process exited with code 139.
Output for 4.4.4 - 4.4.9
FATAL: emalloc(): Unable to allocate 17179869184 bytes
Process exited with code 1.

preferences:
243.96 ms | 401 KiB | 381 Q