3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $pass = str_repeat('a', 1024 * 512); $pass . 'x'; echo memory_get_peak_usage(), "\n", memory_get_peak_usage()/(1024*1024) . 'MB';
Output for 7.2.0 - 7.2.6
1439512 1.3728256225586MB
Output for 7.0.0 - 7.1.0, 7.1.7 - 7.1.20
1402936 1.3379440307617MB
Output for 7.1.5 - 7.1.6
1403072 1.3380737304688MB
Output for 5.5.24 - 5.6.28
1266560 1.2078857421875MB
Output for 5.4.10 - 5.4.45
1267024 1.2083282470703MB
Output for 5.4.0 - 5.4.9
1266496 1.2078247070312MB
Output for 5.3.11 - 5.3.29
1669904 1.5925445556641MB
Output for 5.3.0 - 5.3.10
1669600 1.5922546386719MB
Output for 5.2.10 - 5.2.17
1126960 1.0747528076172MB
Output for 5.2.7 - 5.2.9
1126992 1.0747833251953MB
Output for 5.2.3 - 5.2.6
1127312 1.0750885009766MB
Output for 5.2.1 - 5.2.2
1125240 1.073112487793MB
Output for 5.0.0 - 5.2.0
Fatal error: Call to undefined function memory_get_peak_usage() in /in/8mkd4 on line 6
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/8mkd4 on line 6
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/8mkd4 on line 6
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/8mkd4 on line 6