3v4l.org

run code in 300+ PHP versions simultaneously
<?php $inputs = [ 'd2.r1.4#100.37#1.9#2.3#1', 'd2.r1.4#100.37#1.9#2.38#1.8#22', 'd2.r1.4#100.37#1.9#2.3#1.12#2.30#2', ]; $pattern = '/^d[1-7]\.r[1-6](?:\.(?:3[0-7]|[12]\d|[1-9])#\d+)*$/i'; foreach ($inputs as $input) { echo "\n{$input}: "; var_export((bool)preg_match($pattern, $input)); }
Output for git.master, git.master_jit, rfc.property-hooks
d2.r1.4#100.37#1.9#2.3#1: true d2.r1.4#100.37#1.9#2.38#1.8#22: false d2.r1.4#100.37#1.9#2.3#1.12#2.30#2: true

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:
27.11 ms | 404 KiB | 8 Q