3v4l.org

run code in 300+ PHP versions simultaneously
<?php $part = "+61-426 861 479"; preg_match_all('/\+(\d{2})-(\d{3}(?: \d{3}){2})\b/', $part, $matches, PREG_SET_ORDER, 0); print_r($matches); echo $matches[0][1] . " " . $matches[0][2];
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [0] => +61-426 861 479 [1] => 61 [2] => 426 861 479 ) ) 61 426 861 479

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:
315.33 ms | 1633 KiB | 4 Q