3v4l.org

run code in 300+ PHP versions simultaneously
<?php $attrPattern = '/([a-z0-9-]*)(=(["\']??)([^"\']*?)\\3)?/si'; $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.0090.00616.75
8.3.50.0100.01122.26
8.3.40.0060.00918.66
8.3.30.0000.01419.02
8.3.20.0030.00520.16
8.3.10.0040.00423.48
8.3.00.0040.00719.04
8.2.180.0170.00318.70
8.2.170.0190.00322.96
8.2.160.0030.01020.39
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0000.00726.16
8.2.120.0080.00018.93
8.2.110.0060.00322.05
8.2.100.0080.00417.84
8.2.90.0080.00019.17
8.2.80.0060.00317.97
8.2.70.0040.00417.63
8.2.60.0030.00817.93
8.2.50.0030.00518.07
8.2.40.0060.00320.07
8.2.30.0080.00018.17
8.2.20.0040.00417.89
8.2.10.0000.00717.96
8.2.00.0080.00017.80
8.1.280.0110.00725.92
8.1.270.0090.00023.97
8.1.260.0000.00826.35
8.1.250.0030.00528.09
8.1.240.0030.00623.97
8.1.230.0090.00319.01
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.48
8.1.190.0050.00317.25
8.1.180.0090.00018.10
8.1.170.0080.00318.56
8.1.160.0000.00721.98
8.1.150.0040.00418.75
8.1.140.0000.00817.61
8.1.130.0000.00717.92
8.1.120.0070.00017.61
8.1.110.0040.00417.54
8.1.100.0000.00817.57
8.1.90.0040.00417.55
8.1.80.0060.00317.46
8.1.70.0000.00717.54
8.1.60.0000.00717.58
8.1.50.0050.00317.44
8.1.40.0030.00617.68
8.1.30.0040.00417.59
8.1.20.0040.00417.73
8.1.10.0000.00717.65
8.1.00.0030.00617.48
8.0.300.0040.00420.84
8.0.290.0040.00417.05
8.0.280.0000.00718.34
8.0.270.0040.00417.18
8.0.260.0030.00317.23
8.0.250.0040.00417.09
8.0.240.0040.00417.12
8.0.230.0000.00716.94
8.0.220.0040.00417.07
8.0.210.0040.00417.04
8.0.200.0030.00317.17
8.0.190.0000.00817.10
8.0.180.0050.00216.96
8.0.170.0040.00416.96
8.0.160.0040.00417.09
8.0.150.0000.00717.09
8.0.140.0050.00216.98
8.0.130.0070.00313.50
8.0.120.0000.00816.97
8.0.110.0080.00017.11
8.0.100.0030.00617.08
8.0.90.0000.00717.04
8.0.80.0060.01017.10
8.0.70.0030.00517.13
8.0.60.0000.00717.06
8.0.50.0070.00017.13
8.0.30.0120.00717.22
8.0.20.0140.00917.40
8.0.10.0040.00417.00
8.0.00.0090.00916.84
7.4.330.0000.00515.04
7.4.320.0060.00016.73
7.4.300.0070.00016.85
7.4.290.0030.00316.73
7.4.280.0000.00716.85
7.4.270.0040.00416.57
7.4.260.0000.00916.82
7.4.250.0000.00716.75
7.4.240.0040.00416.84
7.4.230.0000.00716.63
7.4.220.0140.00516.75
7.4.210.0120.00716.70
7.4.200.0080.00016.66
7.4.190.0030.00316.93
7.4.160.0090.00916.54
7.4.150.0070.01117.40
7.4.140.0080.01517.86
7.4.130.0080.01216.68
7.4.120.0090.00916.67
7.4.110.0110.00816.67
7.4.100.0090.01016.69
7.4.90.0110.00716.71
7.4.80.0130.00719.39
7.4.70.0090.00916.74
7.4.60.0090.00916.52
7.4.50.0080.00016.68
7.4.40.0070.01016.57
7.4.30.0070.01016.51
7.4.00.0070.00814.94
7.3.330.0070.00013.06
7.3.320.0030.00313.19
7.3.310.0040.00416.37
7.3.300.0070.00016.39
7.3.290.0060.00916.31
7.3.280.0080.01216.35
7.3.270.0110.01517.40
7.3.260.0110.00816.33
7.3.250.0120.00816.34
7.3.240.0130.00616.71
7.3.230.0120.00616.39
7.3.210.0140.00616.55
7.3.200.0140.00619.39
7.3.190.0060.01216.59
7.3.180.0070.01016.38
7.3.170.0130.00616.46
7.3.160.0160.00316.64
7.3.120.0040.01014.95
7.3.110.0100.01015.01
7.3.100.0060.00614.77
7.3.90.0060.00614.82
7.3.80.0030.01015.11
7.3.70.0070.01014.72
7.3.60.0060.00914.92
7.3.50.0070.01114.88
7.3.40.0000.01214.76
7.3.30.0070.00414.82
7.3.20.0110.00316.89
7.3.10.0110.00016.79
7.3.00.0030.00616.59
7.2.330.0080.01116.64
7.2.320.0140.01016.58
7.2.310.0070.01816.64
7.2.300.0100.00716.46
7.2.290.0210.00616.53
7.2.250.0030.01715.14
7.2.240.0110.00714.96
7.2.230.0130.00615.09
7.2.220.0080.00415.19
7.2.210.0030.01214.90
7.2.200.0070.00314.90
7.2.190.0070.01114.87
7.2.180.0100.00315.03
7.2.170.0130.00315.07
7.2.00.0040.00718.88
7.1.330.0030.01016.12
7.1.320.0040.01215.63
7.1.310.0030.01216.02
7.1.300.0110.00716.09
7.1.290.0030.00915.94
7.1.280.0070.00716.02
7.1.270.0030.01315.75
7.1.260.0040.01116.01
7.1.100.0030.01018.32
7.1.70.0030.00517.36
7.1.60.0130.01319.46
7.1.50.0030.01717.07
7.1.00.0030.07722.38
7.0.200.0040.00716.88
7.0.140.0030.07722.07
7.0.60.0100.08320.03
7.0.50.0030.08717.83
7.0.40.0070.09320.07
7.0.30.0200.04320.11
7.0.20.0270.09020.11
7.0.10.0000.05020.03
7.0.00.0170.07320.14
5.6.280.0070.07320.77
5.6.210.0030.07020.75
5.6.200.0000.04318.21
5.6.190.0100.06320.61
5.6.180.0070.08320.43
5.6.170.0300.05320.42
5.6.160.0070.04020.71
5.6.150.0130.07018.17
5.6.140.0070.08718.18
5.6.130.0030.04718.21
5.6.120.0070.04020.97
5.6.110.0100.08321.08
5.6.100.0030.07721.03
5.6.90.0100.05721.09
5.6.80.0170.07020.36
5.5.350.0000.05320.40
5.5.340.0100.03317.98
5.5.330.0070.06020.40
5.5.320.0270.04020.21
5.5.310.0330.06720.34
5.5.300.0000.05718.02
5.5.290.0070.04018.01
5.5.280.0030.08320.89
5.5.270.0100.08020.63
5.5.260.0000.05320.88
5.5.250.0000.08720.67
5.5.240.0000.08020.18
5.4.450.0530.06719.48
5.4.440.0800.05719.10
5.4.430.0800.05719.54
5.4.420.0570.07019.53
5.4.410.1030.05719.41
5.4.400.0870.06019.29
5.4.390.1400.06319.21
5.4.380.0270.04718.57
5.4.370.0170.04718.58
5.4.360.0100.05318.70
5.4.350.0170.05018.46
5.4.340.0130.05018.72
5.4.320.0110.03312.46
5.4.310.0070.03912.46
5.4.300.0030.04012.46
5.4.290.0120.06912.46
5.4.280.0090.06512.35
5.4.270.0130.04812.35
5.4.260.0140.05512.35
5.4.250.0100.05112.36
5.4.240.0140.04312.36
5.4.230.0190.05712.35
5.4.220.0100.05912.34
5.4.210.0100.05812.34
5.4.200.0130.07612.34
5.4.190.0150.11212.34
5.4.180.0170.09812.34
5.4.170.0120.07912.35
5.4.160.0130.06512.35
5.4.150.0150.07512.35
5.4.140.0230.09812.03
5.4.130.0070.04812.02
5.4.120.0110.06711.97
5.4.110.0250.09811.97
5.4.100.0130.07011.97
5.4.90.0100.07311.97
5.4.80.0120.07211.97
5.4.70.0140.07911.96
5.4.60.0170.08811.97
5.4.50.0080.06411.97
5.4.40.0120.05511.95
5.4.30.0170.06611.96
5.4.20.0070.04911.96
5.4.10.0050.05111.95
5.4.00.0180.07911.45
5.3.290.0080.04212.80
5.3.280.0120.04712.71
5.3.270.0070.05012.72
5.3.260.0080.08012.72
5.3.250.0130.05012.72
5.3.240.0070.05712.72
5.3.230.0100.06112.71
5.3.220.0100.05712.68
5.3.210.0070.05812.68
5.3.200.0100.07212.68
5.3.190.0050.05512.68
5.3.180.0050.04212.68
5.3.170.0070.05412.66
5.3.160.0080.05912.67
5.3.150.0110.04112.67
5.3.140.0070.03912.66
5.3.130.0080.04312.66
5.3.120.0110.06912.66
5.3.110.0110.05312.66
5.3.100.0140.05612.12
5.3.90.0140.06712.08
5.3.80.0090.03612.07
5.3.70.0110.03312.08
5.3.60.0130.03212.06
5.3.50.0060.03912.00
5.3.40.0020.04412.00
5.3.30.0060.03811.96
5.3.20.0070.03711.74
5.3.10.0080.04511.71
5.3.00.0150.04511.70
5.2.170.0150.0529.20
5.2.160.0050.0379.20
5.2.150.0110.0529.20
5.2.140.0070.0319.19
5.2.130.0110.0419.15
5.2.120.0040.0409.15
5.2.110.0040.0399.16
5.2.100.0120.0459.16
5.2.90.0080.0389.16
5.2.80.0060.0349.16
5.2.70.0070.0329.15
5.2.60.0040.0359.10
5.2.50.0090.0309.07
5.2.40.0080.0299.06
5.2.30.0060.0329.04
5.2.20.0080.0349.03
5.2.10.0100.0508.94
5.2.00.0140.0628.79
5.1.60.0090.0268.08
5.1.50.0040.0308.08
5.1.40.0020.0308.06
5.1.30.0040.0308.41
5.1.20.0070.0288.43
5.1.10.0050.0358.15
5.1.00.0070.0278.16
5.0.50.0050.0236.64
5.0.40.0030.0236.49
5.0.30.0050.0326.30
5.0.20.0100.0256.28
5.0.10.0060.0276.25
5.0.00.0080.0386.24
4.4.90.0070.0324.78
4.4.80.0030.0364.75
4.4.70.0160.0634.75
4.4.60.0070.0184.76
4.4.50.0080.0434.77
4.4.40.0050.0274.71
4.4.30.0050.0164.76
4.4.20.0080.0274.84
4.4.10.0070.0194.85
4.4.00.0030.0394.76
4.3.110.0050.0164.67
4.3.100.0030.0184.66
4.3.90.0080.0194.63
4.3.80.0010.0304.58
4.3.70.0050.0154.63
4.3.60.0040.0154.63
4.3.50.0030.0194.63
4.3.40.0050.0264.54
4.3.30.0030.0183.30
4.3.20.0020.0193.27
4.3.10.0040.0163.23
4.3.00.0130.0237.27

preferences:
46.06 ms | 401 KiB | 5 Q