3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo memory_get_peak_usage() . "\n"; $var = ['hallo']; echo memory_get_peak_usage() . "\n"; $var['test'] = 'hallo'; echo memory_get_peak_usage() . "\n";
Output for 7.2.0 - 7.2.6
418528 418528 418528
Output for 7.0.0 - 7.1.20
381824 381824 381824
Output for hhvm-3.15.4
2097152 2097152 2097152
Output for 5.6.0 - 5.6.30
220624 220624 220624