3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $ddd = str_repeat('a', 1024 * 1024 * 2 - memory_get_usage()); echo memory_get_usage(), "\n"; $pass = str_repeat('a', 1024 * 1024 * 9 + 1024 * 1000); $pass . $pass; __halt_compiler();
Output for 7.2.0
2099080
Output for 7.0.0 - 7.1.0, 7.1.7
2099336
Output for 7.1.5 - 7.1.6
2099544
Output for 5.4.0 - 5.6.28
2097264
Output for 5.2.10 - 5.3.29
2097240
Output for 5.2.1 - 5.2.9
2097312
Output for 5.0.0 - 5.2.0
Fatal error: Call to undefined function memory_get_usage() in /in/cHcmk on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: memory_get_usage() in /in/cHcmk on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: memory_get_usage() in /in/cHcmk on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: memory_get_usage() in /in/cHcmk on line 3