3v4l.org

run code in 300+ PHP versions simultaneously
<?php $barcode = ']d201070462608682672140097289158930[GS]10101656[GS]17261130'; preg_match_all('/^]d2(?: 01(?P<g01>.{14})| 10(?P<g10>(?:(?!\[GS]).){1,20})(?:\[GS]|$)| 17(?P<g17>.{6})| 21(?P<g21>(?:(?!\[GS]).){1,20})(?:\[GS]|$) )+$/x', $barcode, $matches); print_r($matches);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [0] => ]d201070462608682672140097289158930[GS]10101656[GS]17261130 ) [g01] => Array ( [0] => 07046260868267 ) [1] => Array ( [0] => 07046260868267 ) [g10] => Array ( [0] => 101656 ) [2] => Array ( [0] => 101656 ) [g17] => Array ( [0] => 261130 ) [3] => Array ( [0] => 261130 ) [g21] => Array ( [0] => 40097289158930 ) [4] => Array ( [0] => 40097289158930 ) )

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:
57.16 ms | 407 KiB | 5 Q