3v4l.org

run code in 300+ PHP versions simultaneously
<?php $startMemory = memory_get_usage(); $array = new SplStack(100000); for ($i = 0; $i < 100000; ++$i) { $array->push($i); } echo memory_get_usage() - $startMemory, ' bytes';

preferences:
34.56 ms | 402 KiB | 5 Q