3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(str_repeat("a", 4294967294/2));
based on ZRshe
Output for 7.0.0 - 7.3.0rc3
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 2147483679 bytes) in /in/D7Wjm on line 2
Process exited with code 255.
Output for 5.3.21 - 5.6.28
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 2147483648 bytes) in /in/D7Wjm on line 2
Process exited with code 255.