3v4l.org

run code in 500+ PHP versions simultaneously
<?php $path = "A000AA00"; $startA = microtime(true); for($i = 0; $i < 100000; $i++) { if (preg_match('~^[A-Z]\d{3}[A-Z]{2}\d{2}\z~', $path)) { // We good } } $endA = microtime(true); echo $endA-$startA;

preferences:
53.32 ms | 679 KiB | 5 Q