3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = '010069008517306731020020001319100421191004091395'; if (preg_match_all('/(01)(\d{14})|(310[12]|3202|1[135])(\d{6})|(21)(\d+)/', $input, $matches)) { $array = array_filter(array_combine($matches[1], $matches[2]) + array_combine($matches[3], $matches[4]) + array_combine($matches[5], $matches[6])); print_r($array); } else { echo "Invalid input!"; }
Output for git.master, git.master_jit
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:
42.69 ms | 849 KiB | 4 Q