3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if (preg_match('#^(GIR ?0AA|[A-PR-UWYZ]([0-9]{1,2}|([A-HK-Y][0-9]([0-9ABEHMNPRV-Y])?)|[0-9][A-HJKPS-UW]) ?[0-9][ABD-HJLNP-UW-Z]{2})$#i', "OL10 4RN")) { echo "true"; } else { echo "false"; }
Output for 5.3.18 - 7.2.0
true