3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = '/ (?x) # free-spacing modifier ^ # start of the line [[:space:][:punct:]]* # ignore any leading trash (?P<street>[[:alpha:][:space:]]+[[:alpha:]]) # street name (any letter from any language) [[:space:][:punct:]]* # separator (?P<house> # house group [[:digit:]] # must start with the digit [[:digit:][:alpha:][:space:][:punct:]]* # any continue with digit, letter, space or punctuation (if necessary) ) [[:space:][:punct:]]* # ignore any trailing trash (not working) $ # end of the line /u'; $sample = 'Potsdamer Strae 124-126'; echo (int)preg_match( $pattern, $sample, $matches).PHP_EOL; print_r($matches);
Output for git.master, git.master_jit, rfc.property-hooks
0 Array ( )

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
43.63 ms | 401 KiB | 8 Q