3v4l.org

run code in 300+ PHP versions simultaneously
<?php $startMemory = memory_get_usage(); $array = range(1, 1); echo memory_get_usage() - $startMemory, ' bytes';

preferences:
28.21 ms | 402 KiB | 5 Q