3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array_fill(0, 1000, 'xxxxx'); $runs = 100; for ($i = 0; $i < $runs; $i++) { foreach ($arr as &$value) { strpos('xxxxxxx', $value); } }

preferences:
44.07 ms | 402 KiB | 5 Q