3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php register_shutdown_function(function() { $lastError = error_get_last(); if ($lastError && strpos($lastError['message'], 'exceeded memory') !== false /* && extension_loaded('xdebug')*/) { echo 'you had xdebug enabled, consider disabling it!'; } }); ini_set('memory_limit', '2M'); str_repeat('a', 999999999);
based on f96Ur
Output for 7.0.0 - 7.2.0
Fatal error: Allowed memory size of 2097152 bytes exhausted (tried to allocate 1000000031 bytes) in /in/BiSm9 on line 13
Process exited with code 255.
Output for 5.3.19 - 5.6.28
Fatal error: Allowed memory size of 2097152 bytes exhausted (tried to allocate 1000000000 bytes) in /in/BiSm9 on line 13
Process exited with code 255.