3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tests = [ "Bright vixens jump; dozy owl quack.", "zyra nymph, quid vex jock, fblg wt", "Amazingly few discotheques provide jukeboxes", "ANFZB ZIQBB SNYQ YWAHT", "pack my box with five dozen liquor jugs!!", "Mr Jock, TV quiz PhD, bags few lynx.", ]; $perfection = array_fill_keys(range(97, 122), 1); $non = $pan = $perf = 0; foreach ($tests as $test) { $counts = array_intersect_key( count_chars(strtolower($test), 1), $perfection ); // var_dump($perfection, '-', $counts, '==='); if ($perfection === $counts) { ++$perf; } elseif (count($counts) != 26) { ++$non; } else { ++$pan; } } var_dump($non, $pan, $perf);
Output for 8.2.0 - 8.2.29, 8.3.0 - 8.3.26, 8.4.1 - 8.4.14
int(3) int(2) int(1)

preferences:
64.59 ms | 406 KiB | 5 Q