3v4l.org

run code in 300+ PHP versions simultaneously
<?php $exp = '/^[a-z]{2}|all$/'; $tests = array('fr', 'french', 'FR', 'all', 'ALL'); foreach ($tests as $test) { echo sprintf("%-10s : %s\n", $test, preg_match($exp, $test) ? "OK" : "ERROR"); }

preferences:
56.35 ms | 402 KiB | 5 Q