3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $ClientAddress = "5 street name\n35230 Village"; $match=null; $AdOk = preg_match("/^([0-9a-zA-Z-, '\\n]+)(\\d{5})([, ]+)([0-9a-zA-Z-, '\\n]+)$/iu", $ClientAddress, $match); var_dump($ClientAddress, $AdOk, $match); ?>
Output for 4.3.0 - 7.1.0
string(27) "5 street name 35230 Village" int(1) array(5) { [0]=> string(27) "5 street name 35230 Village" [1]=> string(14) "5 street name " [2]=> string(5) "35230" [3]=> string(1) " " [4]=> string(7) "Village" }