3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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 7.0.0 - 7.1.0
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 hhvm-3.10.0 - 3.12.0

Process exited with code 137.
Output for 5.2.2 - 5.2.17, 5.4.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.4.3, 5.0.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.