3v4l.org

run code in 300+ PHP versions simultaneously
<?php $memStart = memory_get_usage(); $s = str_repeat("\x00", 1000 * 1000); $memEnd = memory_get_usage(); echo $memEnd - $memStart, PHP_EOL;
Output for 7.1.0 - 7.1.21, 7.2.0 - 7.2.9
1003520

preferences:
20.12 ms | 408 KiB | 5 Q