3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = range(0, PHP_INT_MAX); $str[] = 'kow'; echo count($str);
based on rS0Wg
Output for 7.0.3 - 7.1.0
Warning: range(): The supplied range exceeds the maximum array size: start=0 end=9223372036854775807 in /in/redOE on line 2 1
Output for 7.0.0 - 7.0.2
Warning: range(): The supplied range exceeds the maximum array size: start=0 end=9223372036854775808 in /in/redOE on line 2 1
Output for hhvm-3.12.0
mallctl opt.prof: No such file or directory (2) Fatal error: request has exceeded memory limit in /in/redOE on line 2
Process exited with code 255.
Output for hhvm-3.10.0
Fatal error: request has exceeded memory limit in /in/redOE on line 2
Process exited with code 255.
Output for 5.3.0 - 5.6.28
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/redOE on line 2
Process exited with code 255.
Output for 5.2.2 - 5.2.17
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 71 bytes) in /in/redOE on line 2
Process exited with code 255.
Output for 4.4.0 - 4.4.9, 5.0.5 - 5.2.1
3
Output for 4.3.0 - 4.3.11, 5.0.0 - 5.0.4
Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/redOE on line 2 2