3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = []; foreach (range(1,5000) as $i) { $foo[] = ['username' => md5(time()), 'limits' => ['ep' => rand(1,20)]]; } $time_start = microtime(true); foreach ($foo as $row) { if ($row['limits']['ep'] == 3) { $a = 1 + 2; } array_search("needle", array_column($foo, "username")); } $time_end = microtime(true); $time = $time_end - $time_start; echo "Did nothing in $time seconds\n";

preferences:
27.42 ms | 402 KiB | 5 Q