3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = "any text CA-2019-6-000000 any text"; if (preg_match('~\b([A-Z]{2})[-\s](20[0-9]{2}|2100)-(0?[1-9]|1[0-2])-(\d{6})(?!\d)~', $s, $m)) { print_r($m); }
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => CA-2019-6-000000 [1] => CA [2] => 2019 [3] => 6 [4] => 000000 )

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:
40.08 ms | 405 KiB | 5 Q