3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo memory_get_peak_usage()/(1024*1024) . 'MB', "\n"; echo memory_peak_usage()/(1024*1024) . 'MB', "\n"; $pass = str_repeat('a', 1024 * 1024 * 2); $pass . $pass; echo memory_get_peak_usage()/(1024*1024) . 'MB';
Output for 7.2.0 - 7.2.6
0.39836120605469MB Fatal error: Uncaught Error: Call to undefined function memory_peak_usage() in /in/VcNuQ:3 Stack trace: #0 {main} thrown in /in/VcNuQ on line 3
Process exited with code 255.
Output for 7.0.0 - 7.1.20
0.36335754394531MB Fatal error: Uncaught Error: Call to undefined function memory_peak_usage() in /in/VcNuQ:3 Stack trace: #0 {main} thrown in /in/VcNuQ on line 3
Process exited with code 255.
Output for 5.5.0 - 5.6.28
0.21168518066406MB Fatal error: Call to undefined function memory_peak_usage() in /in/VcNuQ on line 3
Process exited with code 255.
Output for 5.4.10 - 5.4.45
0.21162414550781MB Fatal error: Call to undefined function memory_peak_usage() in /in/VcNuQ on line 3
Process exited with code 255.
Output for 5.4.0 - 5.4.9
0.21112060546875MB Fatal error: Call to undefined function memory_peak_usage() in /in/VcNuQ on line 3
Process exited with code 255.
Output for 5.3.11 - 5.3.29
0.59803771972656MB Fatal error: Call to undefined function memory_peak_usage() in /in/VcNuQ on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.10
0.59774780273438MB Fatal error: Call to undefined function memory_peak_usage() in /in/VcNuQ on line 3
Process exited with code 255.
Output for 5.2.10 - 5.2.17
0.08001708984375MB Fatal error: Call to undefined function memory_peak_usage() in /in/VcNuQ on line 3
Process exited with code 255.
Output for 5.2.7 - 5.2.9
0.080047607421875MB Fatal error: Call to undefined function memory_peak_usage() in /in/VcNuQ on line 3
Process exited with code 255.
Output for 5.2.3 - 5.2.6
0.080352783203125MB Fatal error: Call to undefined function memory_peak_usage() in /in/VcNuQ on line 3
Process exited with code 255.
Output for 5.2.1 - 5.2.2
0.0782470703125MB Fatal error: Call to undefined function memory_peak_usage() in /in/VcNuQ on line 3
Process exited with code 255.
Output for 5.0.0 - 5.2.0
Fatal error: Call to undefined function memory_get_peak_usage() in /in/VcNuQ on line 2
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: memory_get_peak_usage() in /in/VcNuQ on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: memory_get_peak_usage() in /in/VcNuQ on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: memory_get_peak_usage() in /in/VcNuQ on line 2