3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = '010069008517306731020020001319100421191004091395'; $regex = <<<REGEX ~ (?| (01)(\d{14}) |(310[12]|3202|1[135])(\d{6}) |(21)(\d+) ) ~x REGEX; preg_match_all($regex, $input, $m); var_export(array_combine($m[1], $m[2]));
Output for rfc.property-hooks, git.master_jit, git.master
array ( '01' => '00690085173067', 3102 => '002000', 13 => '191004', 21 => '191004091395', )

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:
60.98 ms | 2726 KiB | 4 Q