3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $postcodeData['Exchange']['Postcode'] = 'RG306BP'; preg_match( '^([g][i][r][0][a][a])$|^((([a-pr-uwyz]{1}([0]|[1-9]\d?))|([a-pr-uwyz]{1}[a-hk-y]{1}([0]|[1-9]\d?))|([a-pr-uwyz]{1}[1-9][a-hjkps-uw]{1})|([a-pr-uwyz]{1}[a-hk-y]{1}[1-9][a-z]{1}))(\d[abd-hjlnp-uw-z]{2})?)$', $postcodeData['Exchange']['Postcode'], $postcode ); var_dump($postcode);
Output for 7.0.20, 7.1.5 - 7.2.0
Warning: preg_match(): Unknown modifier '(' in /in/lMTPa on line 7 NULL
Output for 7.0.0 - 7.0.11, 7.1.0
Warning: preg_match(): Unknown modifier '(' in /in/lMTPa on line 6 NULL
Output for 5.2.0 - 5.6.28
Warning: preg_match(): Unknown modifier '(' in /in/lMTPa on line 8 NULL
Output for 4.3.11 - 5.1.6
Warning: preg_match(): Unknown modifier '(' in /in/lMTPa on line 8 array(0) { }
Output for 4.3.0 - 4.3.10
Warning: Unknown modifier '(' in /in/lMTPa on line 8 array(0) { }