3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tests = ['hi', 'hi<', 'what&now', '', '&gt;', "\t"]; foreach ($tests as $test) { if (!preg_match('~^[^ <>&\t]+$~', $test)) { $test = 'anonymous'; } echo "$test\n"; }

preferences:
51.97 ms | 402 KiB | 5 Q