3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $one = range(1,PHP_INT_MAX); unset($one); $two = range(1,PHP_INT_MAX); unset($two);
Output for 7.0.3 - 7.1.0
Warning: range(): The supplied range exceeds the maximum array size: start=1 end=9223372036854775807 in /in/9MdOD on line 3 Warning: range(): The supplied range exceeds the maximum array size: start=1 end=9223372036854775807 in /in/9MdOD on line 5
Output for 7.0.0 - 7.0.2
Warning: range(): The supplied range exceeds the maximum array size: start=1 end=9223372036854775808 in /in/9MdOD on line 3 Warning: range(): The supplied range exceeds the maximum array size: start=1 end=9223372036854775808 in /in/9MdOD on line 5
Output for hhvm-3.12.0
mallctl opt.prof: No such file or directory (2) Fatal error: request has exceeded memory limit in /in/9MdOD on line 3
Process exited with code 255.
Output for hhvm-3.10.0
Fatal error: request has exceeded memory limit in /in/9MdOD on line 3
Process exited with code 255.
Output for 5.5.0 - 5.6.28
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/9MdOD on line 3
Process exited with code 255.
Output for 5.3.0 - 5.4.45
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes) in /in/9MdOD on line 3
Process exited with code 255.
Output for 5.2.3 - 5.2.17
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 71 bytes) in /in/9MdOD on line 3
Process exited with code 255.
Output for 5.2.2
<br /> <b>Fatal error</b>: Allowed memory size of 134217728 bytes exhausted (tried to allocate 24 bytes) in <b>/in/9MdOD</b> on line <b>3</b><br />
Process exited with code 255.
Output for 4.3.0 - 5.2.1