3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = range(1,100000); $start = microtime(true); foreach ($array as $key => $value) { $array[$key] += 1; // Invokes COW } $end = microtime(true); $time = $end - $start; printf("Completed in %.6f seconds\n", $time);

preferences:
28.89 ms | 402 KiB | 5 Q