3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php ini_set('memory_limit', -1); $a = range(0, 20000000); $b = array_map(function($z){ return $z*2; }, $a);
Output for 5.3.5 - 5.4.23
Warning: ini_set() has been disabled for security reasons in /in/gRUHC on line 2 Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/gRUHC on line 3
Process exited with code 255.
Output for 5.2.17
Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in /in/gRUHC on line 4
Process exited with code 255.