3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $ClientAddress = array("5 street name","35230 Village"); foreach ( $ClientAddress as $address ) { $AdOk = preg_match("/^([0-9a-zA-Z-, '\\n]+)(\\d{5})([, ]+)([0-9a-zA-Z-, '\\n]+)$/iu", $address, $match); var_dump($address, $AdOk, $match); } ?>
Output for 4.3.0 - 7.1.10
string(13) "5 street name" int(0) array(0) { } string(13) "35230 Village" int(0) array(0) { }