3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php ini_set('memory_limit', '32M'); $v = str_repeat("A",30000000); $x = array($v); function crash_meh(&$x) { die('failed :('); } crash_meh($v);
Output for 4.3.0 - 5.2.0, 7.0.0 - 7.1.0
failed :(
Output for 5.2.1 - 5.6.28
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 30000001 bytes) in /in/fBmaP on line 11
Process exited with code 139.