3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i=0; $i<10; $i++) { $a = range(1, 10000); echo memory_get_usage(true) . PHP_EOL; $a = null; }

preferences:
28.7 ms | 402 KiB | 5 Q