3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
string(13) "5 street name" int(0) array(0) { } string(13) "35230 Village" int(0) array(0) { }