3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = '010069008517306731020020001319100421191004091395'; preg_match_all('~(?|^(01)\K\d{14}|(310[12]|3202|1[135])\K\d{6}|(21)\K\d+)~', $input, $m); $numbers = array_combine($m[1], $m[0]); print_r($numbers);
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:
59.35 ms | 2726 KiB | 4 Q