3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = str_repeat('a', 1000000000);
Output for 7.0.0 - 7.3.0rc6
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 1000000032 bytes) in /in/40n37 on line 3
Process exited with code 255.
Output for hhvm-3.10.1 - 3.17.3

Process exited with code 139.
Output for 5.2.1 - 5.6.30
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 1000000001 bytes) in /in/40n37 on line 3
Process exited with code 255.
Output for 5.2.0
Fatal error: Out of memory (allocated 262144) (tried to allocate 1000000001 bytes) in /in/40n37 on line 3
Process exited with code 255.
Output for 4.3.0 - 5.1.6
FATAL: emalloc(): Unable to allocate 1000000001 bytes
Process exited with code 1.