3v4l.org

run code in 300+ PHP versions simultaneously
#!/usr/bin/env php <?php $where = [ 'Péché mignon', 'McDo', 'Flunch' ]; srand(time()); $results = array_fill(0, count($where), 0); for ($i = 0; $i < 10000; $i++) { $results[rand(0, count($where) - 1)]++; } echo $where[array_search(max($results), $results)], "\n";

preferences:
32.98 ms | 402 KiB | 5 Q