3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array_fill(0, 1000000, 'hello'); $start = microtime(true); foreach ($arr as $ar) {} echo 'Array Iteration :' . round(microtime(true) - $start, 4) . "\n"; $arr = SplFixedArray::fromArray($arr); $start = microtime(true); foreach ($arr as $ar) {} echo 'SPL Iteration :' . round(microtime(true) - $start, 4) . "\n";

preferences:
35.73 ms | 402 KiB | 5 Q