3v4l.org

run code in 300+ PHP versions simultaneously
<?php $attrPattern = '/([a-z0-9-]*)(=(["\']??)([^"\']*?)\\3)?/siU'; $attr = 'target="_parent" data-foo data-bar="baz"'; preg_match_all($attrPattern, $attr, $matches, PREG_SET_ORDER); 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.3.60.0170.00716.75
8.3.50.0120.00722.12
8.3.40.0070.01018.96
8.3.30.0080.00819.05
8.3.20.0090.00020.39
8.3.10.0090.00023.31
8.3.00.0100.01019.09
8.2.180.0180.00618.61
8.2.170.0100.00622.96
8.2.160.0080.00820.44
8.2.150.0030.00624.18
8.2.140.0090.00024.66
8.2.130.0090.00026.16
8.2.120.0080.00018.99
8.2.110.0030.00622.44
8.2.100.0080.00417.72
8.2.90.0040.00419.23
8.2.80.0050.00517.97
8.2.70.0000.00917.75
8.2.60.0050.00517.43
8.2.50.0040.00418.07
8.2.40.0090.00019.78
8.2.30.0040.00418.31
8.2.20.0040.00417.88
8.2.10.0040.00418.15
8.2.00.0050.00317.90
8.1.280.0150.00325.92
8.1.270.0090.00024.05
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00318.94
8.1.230.0130.00018.93
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0070.00317.35
8.1.190.0030.00517.22
8.1.180.0070.00318.10
8.1.170.0100.00018.60
8.1.160.0030.00521.98
8.1.150.0050.00318.84
8.1.140.0060.00317.52
8.1.130.0050.00217.79
8.1.120.0080.00017.45
8.1.110.0000.00817.58
8.1.100.0040.00417.45
8.1.90.0070.00017.58
8.1.80.0000.00717.54
8.1.70.0050.00317.50
8.1.60.0040.00417.60
8.1.50.0030.00517.57
8.1.40.0040.00417.62
8.1.30.0060.00317.64
8.1.20.0030.00617.70
8.1.10.0080.00017.71
8.1.00.0080.00017.48
8.0.300.0060.00320.85
8.0.290.0040.00417.05
8.0.280.0000.00718.41
8.0.270.0030.00517.26
8.0.260.0000.00717.21
8.0.250.0000.00817.04
8.0.240.0040.00417.17
8.0.230.0030.00317.07
8.0.220.0000.00717.17
8.0.210.0070.00016.92
8.0.200.0000.00717.06
8.0.190.0050.00517.16
8.0.180.0000.00817.02
8.0.170.0000.00917.07
8.0.160.0000.00816.93
8.0.150.0000.00816.98
8.0.140.0030.00516.93
8.0.130.0050.00313.50
8.0.120.0040.00417.16
8.0.110.0080.00016.92
8.0.100.0000.00817.09
8.0.90.0000.00717.11
8.0.80.0060.01017.08
8.0.70.0040.00416.90
8.0.60.0000.00817.16
8.0.50.0030.00617.11
8.0.30.0090.01317.18
8.0.20.0120.01317.40
8.0.10.0060.00317.19
8.0.00.0110.01216.96
7.4.330.0040.00415.05
7.4.320.0000.00716.62
7.4.300.0070.00016.61
7.4.290.0050.00216.70
7.4.280.0030.00616.74
7.4.270.0040.00416.80
7.4.260.0040.00416.65
7.4.250.0000.00716.67
7.4.240.0030.00516.75
7.4.230.0070.00016.69
7.4.220.0130.00616.68
7.4.210.0090.01016.81
7.4.200.0000.00716.55
7.4.190.0070.00016.61
7.4.160.0050.01816.71
7.4.150.0190.00317.40
7.4.140.0160.00917.86
7.4.130.0130.00716.68
7.4.120.0090.01216.70
7.4.110.0180.00416.75
7.4.100.0170.00916.66
7.4.90.0150.00616.77
7.4.80.0030.01619.39
7.4.70.0120.00616.78
7.4.60.0110.00816.61
7.4.50.0090.00016.38
7.4.40.0110.00916.70
7.4.30.0160.00316.61
7.4.00.0090.00615.24
7.3.330.0030.00313.18
7.3.320.0050.00013.25
7.3.310.0040.00416.29
7.3.300.0060.00316.33
7.3.290.0090.00916.38
7.3.280.0080.01216.36
7.3.270.0080.01117.40
7.3.260.0100.01016.25
7.3.250.0120.01216.58
7.3.240.0100.01016.30
7.3.230.0060.01816.57
7.3.210.0200.00016.20
7.3.200.0130.01319.39
7.3.190.0090.00916.18
7.3.180.0060.01216.41
7.3.170.0140.01116.39
7.3.160.0140.00616.61
7.3.120.0100.00714.79
7.2.330.0080.01216.57
7.2.320.0120.01216.69
7.2.310.0060.01516.59
7.2.300.0100.01016.64
7.2.290.0120.00816.64
7.2.00.0100.00318.96
7.1.200.0100.00315.97
7.1.100.0030.01018.54
7.1.70.0000.00917.27
7.1.60.0120.00319.46
7.1.50.0110.01417.01
7.1.00.0030.07722.53
7.0.200.0060.00316.92
7.0.140.0070.07322.21
7.0.60.0230.07319.79
7.0.50.0130.07717.82
7.0.40.0030.04320.06
7.0.30.0170.05020.32
7.0.20.0170.07020.11
7.0.10.0100.04720.11
7.0.00.0030.04320.01
5.6.280.0070.07320.98
5.6.210.0030.05020.74
5.6.200.0200.07318.23
5.6.190.0030.06020.57
5.6.180.0570.05020.33
5.6.170.0400.06720.33
5.6.160.0100.08020.52
5.6.150.0100.05018.12
5.6.140.0070.03718.18
5.6.130.0030.04318.21
5.6.120.0130.08021.09
5.6.110.0030.09321.09
5.6.100.0070.06720.98
5.6.90.0100.08021.00
5.6.80.0200.03320.38
5.5.350.0230.06720.46
5.5.340.0070.06718.01
5.5.330.0130.08020.23
5.5.320.0230.04020.42
5.5.310.0330.07720.27
5.5.300.0070.08017.98
5.5.290.0030.06017.91
5.5.280.0070.05020.73
5.5.270.0070.05720.63
5.5.260.0000.04720.86
5.5.250.0100.07320.57
5.5.240.0200.07320.25
5.4.450.0630.05319.40
5.4.440.1000.06319.32
5.4.430.0970.05719.43
5.4.420.1270.06719.16
5.4.410.0830.06019.19
5.4.400.1100.05719.33
5.4.390.0900.07018.89
5.4.380.0100.05718.80
5.4.370.0230.04318.59
5.4.360.0130.05318.52
5.4.350.0100.06018.72
5.4.340.0100.05718.55
5.4.320.0090.03512.48
5.4.310.0080.04412.48
5.4.300.0060.03712.48
5.4.290.0080.04512.48
5.4.280.0070.04112.38
5.4.270.0100.03912.38
5.4.260.0180.03412.38
5.4.250.0110.04212.38
5.4.240.0150.05012.38
5.4.230.0100.04612.37
5.4.220.0090.03612.37
5.4.210.0060.06012.37
5.4.200.0080.06212.37
5.4.190.0080.04412.36
5.4.180.0080.05412.36
5.4.170.0210.06812.38
5.4.160.0210.07312.38
5.4.150.0050.05812.37
5.4.140.0110.05512.05
5.4.130.0130.05512.04
5.4.120.0110.06612.00
5.4.110.0120.05612.00
5.4.100.0160.06711.99
5.4.90.0130.07511.99
5.4.80.0090.07412.00
5.4.70.0160.04711.99
5.4.60.0100.04311.99
5.4.50.0110.05011.99
5.4.40.0160.06211.98
5.4.30.0290.09511.98
5.4.20.0220.09811.98
5.4.10.0210.08411.98
5.4.00.0060.04011.47
5.3.290.0090.03812.80
5.3.280.0090.03912.71
5.3.270.0180.06312.72
5.3.260.0070.06312.72
5.3.250.0130.05912.72
5.3.240.0160.08812.71
5.3.230.0100.06212.71
5.3.220.0170.07112.68
5.3.210.0170.06912.68
5.3.200.0130.05812.68
5.3.190.0140.06312.68
5.3.180.0240.07412.68
5.3.170.0180.07812.67
5.3.160.0160.07512.68
5.3.150.0140.05912.67
5.3.140.0100.07212.66
5.3.130.0230.07612.66
5.3.120.0100.06412.66
5.3.110.0220.08012.66
5.3.100.0210.05912.12
5.3.90.0200.06212.10
5.3.80.0180.08412.09
5.3.70.0210.07212.09
5.3.60.0190.09312.08
5.3.50.0110.05312.02
5.3.40.0130.05112.02
5.3.30.0110.06711.98
5.3.20.0110.06911.76
5.3.10.0120.06911.73
5.3.00.0110.07711.71
5.2.170.0190.0799.22
5.2.160.0110.0439.22
5.2.150.0080.0489.22
5.2.140.0080.0449.22
5.2.130.0080.0479.18
5.2.120.0080.0449.18
5.2.110.0090.0409.19
5.2.100.0120.0589.18
5.2.90.0120.0539.18
5.2.80.0080.0539.18
5.2.70.0050.0509.18
5.2.60.0160.0439.13
5.2.50.0080.0639.09
5.2.40.0110.0449.08
5.2.30.0080.0509.06
5.2.20.0080.0489.05
5.2.10.0090.0318.96
5.2.00.0080.0378.82
5.1.60.0090.0298.11
5.1.50.0070.0328.10
5.1.40.0030.0318.09
5.1.30.0050.0318.44
5.1.20.0080.0278.46
5.1.10.0090.0328.18
5.1.00.0060.0308.18
5.0.50.0060.0226.66
5.0.40.0050.0216.52
5.0.30.0060.0346.33
5.0.20.0050.0246.30
5.0.10.0040.0236.28
5.0.00.0070.0306.27
4.4.90.0050.0164.78
4.4.80.0040.0174.75
4.4.70.0080.0144.76
4.4.60.0060.0164.75
4.4.50.0060.0304.77
4.4.40.0090.0434.71
4.4.30.0070.0314.76
4.4.20.0080.0274.85
4.4.10.0050.0284.85
4.4.00.0060.0354.76
4.3.110.0060.0264.67
4.3.100.0060.0244.67
4.3.90.0100.0334.63
4.3.80.0100.0364.59
4.3.70.0110.0614.63
4.3.60.0070.0434.63
4.3.50.0050.0264.63
4.3.40.0100.0334.54
4.3.30.0030.0353.33
4.3.20.0010.0263.31
4.3.10.0110.0393.26
4.3.00.0200.0237.20

preferences:
47.63 ms | 401 KiB | 5 Q