3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tests = [ '7hello', 'Fooey', 'Shoo3y', 'Whoa!', 'A1_B2_C3_', '_ABC', 'UB40', 'omg', 'Hi_', 'Stackoverflow_', ]; foreach ($tests as $test) { printf( "%s : %s\n", $test, preg_match('/^(?:[a-z]\w*){3}$/i', $test) ? 'pass' : 'fail' ); }

preferences:
44.13 ms | 1123 KiB | 5 Q