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); //var_dump($ClientAddress, $AdOk, $match); if($AdOk) print "Adresse ok"; else print "Adresse failed"; ?>
Output for 4.3.0 - 7.1.0
Adresse ok