3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $i = range(1, 10**100); foreach($i as $v){ echo $v . PHP_EOL; }
based on 3s7Hu
Output for 7.0.0 - 7.2.0
Warning: range(): The supplied range exceeds the maximum array size: start=1 end=10000000000000002101697803323328251387822715387464188032188166609887360023982790799717755191065313280 in /in/TmSmL on line 2 Warning: Invalid argument supplied for foreach() in /in/TmSmL on line 3
Output for 5.6.7 - 5.6.28
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/TmSmL on line 2
Process exited with code 255.
Output for 5.3.19 - 5.5.35
Parse error: syntax error, unexpected '*' in /in/TmSmL on line 2
Process exited with code 255.