<?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;
You have javascript disabled. You will not be able to edit any code.
Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).