3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $max = 2 ** 20; $idxs = range(1, $max-1); print_r($max); print_r($max-1);
Output for 7.0.0 - 7.1.7, 7.2.0
10485761048575
Output for 7.1.10

Process exited with code 137.
Output for 5.6.8 - 5.6.28
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/OUSMR on line 4
Process exited with code 255.
Output for 5.3.20 - 5.5.35
Parse error: syntax error, unexpected '*' in /in/OUSMR on line 3
Process exited with code 255.