3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php ini_set('memory_limit', '32M'); $var5 = str_repeat("A",30000000); $x = array($var5); function crash_me(&$x) { die('failed :-('); } crash_me($var5);
Output for 4.3.0 - 5.2.0, 7.0.0 - 7.1.0
failed :-(
Output for hhvm-3.12.0
mallctl opt.prof: No such file or directory (2) Fatal error: request has exceeded memory limit in /in/DIirH on line 8
Process exited with code 255.
Output for hhvm-3.10.0
Fatal error: request has exceeded memory limit in /in/DIirH on line 8
Process exited with code 255.
Output for 5.2.1 - 5.6.28
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 30000001 bytes) in /in/DIirH on line 11
Process exited with code 139.