3v4l.org

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

preferences:
32.12 ms | 402 KiB | 5 Q