3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = 'ab-123-asdf'; if (preg_match('/\w-(?P<num>\d+)-(\w)/', $s, $matches)) { var_dump($matches); }

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.4.130.0130.00717.76
8.4.120.0120.00820.80
8.4.110.0110.00922.25
8.4.100.0130.00417.63
8.4.90.0090.01118.06
8.4.80.0070.01117.96
8.4.70.0080.01117.95
8.4.60.0110.01018.63
8.4.50.0110.01117.99
8.4.40.0060.01317.63
8.4.30.0070.01318.82
8.4.20.0140.00719.73
8.4.10.0030.00619.62
8.3.260.0060.00316.86
8.3.250.0110.00719.05
8.3.240.0110.00916.64
8.3.230.0100.00916.79
8.3.220.0120.00718.72
8.3.210.0100.00516.31
8.3.200.0110.00816.73
8.3.190.0090.00617.27
8.3.180.0090.00916.66
8.3.170.0040.00420.51
8.3.160.0130.00616.96
8.3.150.0140.00417.05
8.3.140.0140.00416.75
8.3.130.0060.00316.69
8.3.120.0030.00620.77
8.3.110.0060.00316.71
8.3.100.0030.00618.46
8.3.90.0140.00726.77
8.3.80.0060.00318.43
8.3.70.0280.00316.63
8.3.60.0230.00616.58
8.3.50.0080.00316.70
8.3.40.0120.00917.50
8.3.30.0140.01117.38
8.3.20.0230.00317.23
8.3.10.0100.01017.50
8.3.00.0130.00817.50
8.2.290.0130.00720.46
8.2.280.0090.00018.50
8.2.270.0140.00416.88
8.2.260.0110.00418.36
8.2.250.0040.00416.73
8.2.240.0060.00317.34
8.2.230.0080.00020.94
8.2.220.0050.00324.06
8.2.210.0120.00326.77
8.2.200.0060.00316.63
8.2.190.0200.00316.63
8.2.180.0150.01116.63
8.2.170.0210.00917.50
8.2.160.0250.00017.63
8.2.150.0220.00417.24
8.2.140.0250.00417.25
8.2.130.0150.01217.25
8.2.120.0140.00917.73
8.2.110.0180.01117.63
8.2.100.0260.00017.63
8.2.90.0250.00017.38
8.2.80.0250.00017.72
8.2.70.0270.00017.63
8.2.60.0220.00317.63
8.2.50.0190.00417.25
8.2.40.0220.00317.74
8.2.30.0170.00417.47
8.2.20.0210.00317.38
8.2.10.0220.00417.50
8.2.00.0230.00317.38
8.1.330.0080.00216.74
8.1.320.0120.00418.23
8.1.310.0060.01216.90
8.1.300.0040.01418.54
8.1.290.0090.00030.84
8.1.280.0240.00616.58
8.1.270.0260.00317.49
8.1.260.0160.01217.50
8.1.250.0210.00417.23
8.1.240.0210.00417.35
8.1.230.0260.00017.22
8.1.220.0090.01317.35
8.1.210.0200.00316.88
8.1.200.0260.00017.35
8.1.190.0110.01117.13
8.1.180.0200.00017.23
8.1.170.0180.00317.38
8.1.160.0150.00517.13
8.1.150.0200.00217.47
8.1.140.0220.00417.38
8.1.130.0160.00717.35
8.1.120.0140.00817.47
8.1.110.0200.00017.35
8.1.100.0170.00317.47
8.1.90.0240.00517.10
8.1.80.0280.00017.50
8.1.70.0210.00317.23
8.1.60.0220.00317.38
8.1.50.0180.00517.47
8.1.40.0240.00317.25
8.1.30.0200.00717.47
8.1.20.0140.01417.63
8.1.10.0170.00617.50
8.1.00.0220.00017.38

preferences:
28.52 ms | 403 KiB | 5 Q