3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regex = '/[.{8,60}]/'; $tests = [ 'abc', 'abc123', 'abc123#', 'abc123#!', 'abc123#!a1', ]; while ($test = array_shift($tests)) { var_dump(preg_match($regex, $test)); } echo PHP_EOL; echo bin2hex(random_bytes(10)).PHP_EOL; echo bin2hex(random_bytes(10)).PHP_EOL; echo bin2hex(random_bytes(10)).PHP_EOL; echo bin2hex(random_bytes(10)).PHP_EOL; echo bin2hex(random_bytes(10)).PHP_EOL; echo bin2hex(random_bytes(10)).PHP_EOL; echo bin2hex(random_bytes(10)).PHP_EOL; echo bin2hex(random_bytes(10)).PHP_EOL; echo bin2hex(random_bytes(10)).PHP_EOL; echo bin2hex(random_bytes(10)).PHP_EOL; echo bin2hex(random_bytes(10)).PHP_EOL; echo bin2hex(random_bytes(10)).PHP_EOL; echo bin2hex(random_bytes(10)).PHP_EOL;
Output for 7.2.0
int(0) int(0) int(0) int(0) int(0) a27728e28e9c49bc8060 cfd3b356098f9f40cc86 081fcabddd4837fec4bf 7d2b78e19d0efe04da66 27ca77badca79a9dcb02 8fc8a03a01f67bd63981 dd4683d9cf264cb210fc c67863e9b37c98380241 0b08a088a261fb5841df a146b439637b33c5484d 5cc7c59a5e8b401423f3 fe5d34e3dcc5714d7b3d 5fb154743f17f6a14e0d

preferences:
66.89 ms | 405 KiB | 5 Q