3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tag = "MU"; $strings = [ 'D109 MU, worked from home today', 'Walked the dog, later took the kids to swimming. D110 MU. Went to the gym in the evening for the 9th time this month.' ]; foreach ($strings as $string) { echo "\n---\n" , preg_match("~D\K\d+(?= $tag)~", $string, $out) ? $out[0] : 'fail'; }

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.3.130.0050.00318.34
8.3.120.0030.00618.95
8.3.110.0000.00820.94
8.3.100.0040.00424.06
8.3.90.0000.00826.77
8.3.80.0100.00018.43
8.3.70.0100.01318.64
8.3.60.0130.01018.43
8.3.50.0170.01017.35
8.3.40.0070.00718.87
8.3.30.0070.00718.85
8.3.20.0000.00818.86
8.3.10.0080.00023.54
8.3.00.0000.00721.59
8.2.250.0040.00416.75
8.2.240.0040.00417.40
8.2.230.0060.00322.58
8.2.220.0040.00437.54
8.2.210.0040.00426.77
8.2.200.0080.00418.76
8.2.190.0040.01118.54
8.2.180.0090.00617.00
8.2.170.0110.00422.96
8.2.160.0000.01420.39
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0080.00019.95
8.2.120.0030.00526.35
8.2.110.0050.00519.45
8.2.100.0080.00418.16
8.2.90.0030.00717.72
8.2.80.0040.00417.97
8.2.70.0050.00318.16
8.2.60.0070.00418.03
8.2.50.0030.00518.10
8.2.40.0030.00519.40
8.2.30.0040.00419.21
8.2.20.0070.00018.04
8.2.10.0040.00418.08
8.2.00.0000.00817.63
8.1.300.0160.00318.28
8.1.290.0110.00330.84
8.1.280.0100.00725.92
8.1.270.0030.00520.77
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0030.00619.57
8.1.230.0030.00717.95
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0090.00017.36
8.1.190.0000.00817.36
8.1.180.0040.00418.10
8.1.170.0030.00518.66
8.1.160.0070.00018.87
8.1.150.0000.00718.80
8.1.140.0040.00422.04
8.1.130.0070.00020.15
8.1.120.0070.00017.54
8.1.110.0040.00417.55
8.1.100.0020.00517.66
8.1.90.0080.00017.64
8.1.80.0030.00717.65
8.1.70.0070.00017.62
8.1.60.0090.00017.73
8.1.50.0050.00317.67
8.1.40.0000.00817.72
8.1.30.0000.00817.74
8.1.20.0040.00417.84
8.1.10.0040.00417.70
8.1.00.0040.00417.72
8.0.300.0080.00018.77
8.0.290.0100.00016.75
8.0.280.0030.00318.48
8.0.270.0070.00017.23
8.0.260.0030.00320.16
8.0.250.0030.00317.05
8.0.240.0050.00217.11
8.0.230.0050.00317.15
8.0.220.0040.00416.95
8.0.210.0070.00017.07
8.0.200.0030.00316.96
8.0.190.0040.00417.15
8.0.180.0030.00617.03
8.0.170.0040.00717.07
8.0.160.0000.00717.04
8.0.150.0000.00717.07
8.0.140.0000.00716.91
8.0.130.0030.00313.46
8.0.120.0080.00016.91
8.0.110.0050.00317.12
8.0.100.0040.00417.12
8.0.90.0040.00416.99
8.0.80.0070.00917.04
8.0.70.0040.00417.09
8.0.60.0000.00716.99
8.0.50.0040.00416.90
8.0.30.0060.01117.22
8.0.20.0110.01117.40
8.0.10.0040.00416.99
8.0.00.0090.00917.15
7.4.330.0030.00315.55
7.4.320.0000.00616.84
7.4.300.0000.00716.82
7.4.290.0080.00016.68
7.4.280.0040.00416.67
7.4.270.0040.00416.64
7.4.260.0030.00816.66
7.4.250.0070.00016.71
7.4.240.0060.00316.82
7.4.230.0000.00716.71
7.4.220.0040.00416.57
7.4.210.0090.00916.79
7.4.200.0070.00016.73
7.4.160.0080.00816.67
7.4.140.0100.01017.86
7.4.130.0070.01116.55
7.4.120.0090.01116.83
7.4.110.0130.00916.71
7.4.100.0170.00016.77
7.4.90.0140.01016.65
7.4.80.0040.01419.39
7.4.70.0130.01016.66
7.4.60.0070.01416.99
7.4.50.0040.01116.52
7.4.40.0190.00016.52
7.4.10.0080.00815.00
7.4.00.0070.00815.03
7.3.330.0050.00013.38
7.3.320.0030.00313.19
7.3.310.0000.00716.36
7.3.300.0000.00716.47
7.3.290.0000.00716.54
7.3.280.0080.00816.49
7.3.260.0100.01016.61
7.3.240.0090.00916.61
7.3.230.0110.00616.50
7.3.210.0100.00716.50
7.3.200.0090.01316.76
7.3.190.0090.00716.43
7.3.180.0130.00316.68
7.3.170.0160.00016.64
7.3.160.0080.01116.47
7.3.130.0130.00714.93
7.3.120.0060.00814.70
7.3.110.0100.00615.26
7.3.100.0090.00615.05
7.3.90.0080.00415.12
7.3.80.0000.01215.19
7.3.70.0090.00614.94
7.3.60.0060.00915.09
7.3.50.0000.01415.14
7.3.40.0080.00814.82
7.3.30.0060.00915.05
7.3.20.0100.00716.76
7.3.10.0070.00616.74
7.3.00.0080.00616.80
7.2.330.0170.00016.78
7.2.320.0030.01516.77
7.2.310.0100.01016.85
7.2.300.0070.01016.66
7.2.290.0130.00516.78
7.2.260.0030.01614.99
7.2.250.0070.01315.37
7.2.240.0120.00315.16
7.2.230.0060.00915.34
7.2.220.0070.00715.34
7.2.210.0000.00915.13
7.2.200.0040.01115.52
7.2.190.0070.01015.19
7.2.180.0030.00615.35
7.2.170.0040.01115.24
7.2.160.0040.01115.16
7.2.150.0040.00817.09
7.2.140.0000.01016.95
7.2.130.0070.00916.95
7.2.120.0100.00716.96
7.2.110.1380.01016.50
7.2.100.0940.00916.39
7.2.90.1160.00916.50
7.2.80.0670.00616.43
7.2.70.1100.00516.54
7.2.60.1030.00716.57
7.2.50.0750.00816.71
7.2.40.0940.00616.56
7.2.30.1070.00916.54
7.2.20.0840.01116.48
7.2.10.0660.00816.48
7.2.00.0770.00616.53
7.1.330.0110.00415.92
7.1.320.0090.00615.76
7.1.310.0040.00916.25
7.1.300.0040.00716.01
7.1.290.0090.00315.98
7.1.280.0090.00616.23
7.1.270.0060.00915.88
7.1.260.0100.00316.03
7.1.250.0090.00315.81
7.1.240.0030.00716.02
7.1.230.2560.00915.03
7.1.220.2970.00515.13
7.1.210.2570.00714.87
7.1.200.1730.01214.99
7.1.190.1380.00815.21
7.1.180.2000.00314.95
7.1.170.1490.00514.98
7.1.160.1730.00614.84
7.1.150.1560.00714.94
7.1.140.1700.00714.78
7.1.130.1580.00714.88
7.1.120.1510.00315.05
7.1.110.1480.00715.07
7.1.100.1610.01415.05
7.1.90.1520.00814.98
7.1.80.0350.00514.96
7.1.70.0100.00715.19
7.1.60.1370.00824.10
7.1.50.1320.00924.00
7.1.40.1620.00724.11
7.1.30.1870.00723.96
7.1.20.1360.00723.62
7.1.10.1500.00214.99
7.1.00.0920.00714.88
7.0.330.0000.01215.26
7.0.320.0090.00315.71
7.0.310.0030.01015.52
7.0.300.0100.00615.77
7.0.290.0050.00515.66
7.0.280.0060.00615.57
7.0.270.0110.00315.68
7.0.260.0030.00615.55
7.0.250.0030.00915.72
7.0.240.0030.00615.63
7.0.230.0040.00815.28
7.0.220.0040.00415.80
7.0.210.0030.00715.68
7.0.200.0000.00915.72
7.0.190.0030.00715.73
7.0.180.0090.00315.60
7.0.170.0070.00715.54
7.0.160.0040.01115.61
7.0.150.0000.01215.68
7.0.140.0090.00315.58
7.0.130.0030.01015.48
7.0.120.0000.01215.39
7.0.110.0060.00615.74
7.0.100.0150.00015.66
7.0.90.0040.00715.53
7.0.80.0000.01315.58
7.0.70.0000.01115.66
7.0.60.0030.00615.40
7.0.50.0040.00415.50
7.0.40.0100.00313.75
7.0.30.0060.00613.76
7.0.20.0060.00313.66
7.0.10.0030.00713.61
7.0.00.0070.00713.48
5.6.400.0070.00714.51
5.6.390.0080.01114.50
5.6.380.0150.00314.34
5.6.370.0060.00614.09
5.6.360.0040.01114.38
5.6.350.0040.00414.75
5.6.340.0030.01314.81
5.6.330.0040.01114.73
5.6.320.0140.00014.56
5.6.310.0000.01414.62
5.6.300.0000.00914.60
5.6.290.0100.00714.53
5.6.280.0070.00714.54
5.6.270.0080.00514.52
5.6.260.0030.01014.36
5.6.250.0040.01114.52
5.6.240.0030.00914.57
5.6.230.0040.01114.60
5.6.220.0030.00914.46
5.6.210.0040.00814.17
5.6.200.0000.01114.40
5.6.190.0000.00814.57
5.6.180.0070.00314.25
5.6.170.0030.00714.16
5.6.160.0100.00314.28
5.6.150.0040.00814.43
5.6.140.0000.00914.51
5.6.130.0120.00314.36
5.6.120.0060.00314.52
5.6.110.0040.00414.75
5.6.100.0060.00614.22
5.6.90.0070.00314.21
5.6.80.0070.00714.43
5.6.70.0090.00914.42
5.6.60.0050.00514.35
5.6.50.0030.01014.49
5.6.40.0000.01114.26
5.6.30.0030.00914.27
5.6.20.0050.00314.38
5.6.10.0100.00314.46
5.6.00.0040.00714.27

preferences:
30.09 ms | 403 KiB | 5 Q