3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = []; for($i = 0; $i < 10; $i) { $a[] = $i; } $arr = array_map($a, function($x) {return $x*$x;}); return;
based on saJ0i
Output for 7.0.0 - 7.0.9, 7.0.12 - 7.3.0beta1
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 67108872 bytes) in /in/94KQB on line 5
Process exited with code 255.
Output for 7.0.10 - 7.0.11

Process exited with code 137.
Output for hhvm-3.12.14 - 3.17.3

Process exited with code 139.
Output for 5.6.0 - 5.6.30
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 72 bytes) in /in/94KQB on line 5
Process exited with code 255.