3v4l.org

run code in 300+ PHP versions simultaneously
<?php $attrPattern = '/([^=]*)=(["\']??)([^"\']*?)\\2/siU'; $attr = 'target="_parent" data-bar="baz"'; preg_match_all($attrPattern, $attr, $matches, PREG_SET_ORDER ^ PREG_OFFSET_CAPTURE); 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.63
8.3.50.0120.00822.11
8.3.40.0070.01518.67
8.3.30.0040.01119.09
8.3.20.0040.00420.33
8.3.10.0000.00823.53
8.3.00.0040.00419.27
8.2.180.0110.00718.41
8.2.170.0080.00822.96
8.2.160.0100.00320.50
8.2.150.0050.00324.18
8.2.140.0050.00524.66
8.2.130.0060.00326.16
8.2.120.0080.00019.10
8.2.110.0090.00022.24
8.2.100.0120.00017.84
8.2.90.0040.00419.17
8.2.80.0080.00017.97
8.2.70.0050.00517.88
8.2.60.0000.00817.80
8.2.50.0000.00818.07
8.2.40.0090.00020.06
8.2.30.0000.00718.24
8.2.20.0030.00617.91
8.2.10.0000.00718.07
8.2.00.0050.00317.83
8.1.280.0060.01325.92
8.1.270.0060.00323.88
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0040.00424.02
8.1.230.0060.00618.97
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0060.00317.50
8.1.190.0050.00317.35
8.1.180.0060.00318.10
8.1.170.0040.00418.68
8.1.160.0040.00421.96
8.1.150.0040.00418.74
8.1.140.0040.00417.51
8.1.130.0080.00017.97
8.1.120.0040.00417.58
8.1.110.0000.00717.57
8.1.100.0000.00717.55
8.1.90.0030.00517.54
8.1.80.0000.00817.52
8.1.70.0000.00717.34
8.1.60.0030.00517.65
8.1.50.0030.00517.48
8.1.40.0030.00617.61
8.1.30.0040.00417.76
8.1.20.0030.00517.73
8.1.10.0020.00517.72
8.1.00.0040.00417.64
8.0.300.0000.00718.77
8.0.290.0000.00817.05
8.0.280.0000.00718.45
8.0.270.0000.00717.21
8.0.260.0000.00617.19
8.0.250.0000.00717.02
8.0.240.0040.00417.03
8.0.230.0070.00017.02
8.0.220.0000.00717.02
8.0.210.0070.00016.96
8.0.200.0030.00316.96
8.0.190.0000.00816.96
8.0.180.0030.00517.00
8.0.170.0040.00417.01
8.0.160.0070.00016.87
8.0.150.0000.00816.81
8.0.140.0040.00416.82
8.0.130.0050.00313.39
8.0.120.0050.00316.90
8.0.110.0040.00417.06
8.0.100.0030.00616.99
8.0.90.0030.00616.81
8.0.80.0100.00716.98
8.0.70.0040.00416.94
8.0.60.0000.00717.10
8.0.50.0030.00517.02
8.0.30.0150.00417.31
8.0.20.0110.00917.40
8.0.10.0050.00217.11
8.0.00.0120.01016.92
7.4.330.0000.00515.12
7.4.320.0030.00316.63
7.4.300.0080.00016.73
7.4.290.0000.00716.73
7.4.280.0030.00516.73
7.4.270.0040.00416.66
7.4.260.0040.00416.66
7.4.250.0000.00716.53
7.4.240.0040.00316.73
7.4.230.0070.00016.74
7.4.220.0090.01016.81
7.4.210.0050.00916.80
7.4.200.0000.00716.66
7.4.190.0030.00316.71
7.4.160.0110.00816.85
7.4.150.0070.01417.40
7.4.140.0100.00917.86
7.4.130.0060.01216.51
7.4.120.0090.01316.71
7.4.110.0110.00816.50
7.4.100.0170.00616.52
7.4.90.0120.00616.57
7.4.80.0150.00419.39
7.4.70.0120.00616.49
7.4.60.0100.00716.89
7.4.50.0040.00416.73
7.4.40.0100.00716.50
7.4.30.0140.00316.71
7.4.00.0040.01114.89
7.3.330.0000.00513.02
7.3.320.0050.00013.22
7.3.310.0040.00416.24
7.3.300.0000.00716.13
7.3.290.0100.00616.23
7.3.280.0110.01016.29
7.3.270.0110.00817.40
7.3.260.0170.00616.53
7.3.250.0100.01016.36
7.3.240.0040.01416.67
7.3.230.0130.00316.70
7.3.210.0140.00316.29
7.3.200.0120.00619.39
7.3.190.0140.00716.53
7.3.180.0110.00616.43
7.3.170.0060.01216.27
7.3.160.0100.00716.49
7.3.120.0060.00914.55
7.2.330.0100.00716.58
7.2.320.0180.00316.57
7.2.310.0160.00316.54
7.2.300.0100.00816.50
7.2.290.0080.01116.49
7.2.00.0070.00719.33
7.1.100.0070.00318.35
7.1.70.0080.00317.18
7.1.60.0070.01719.46
7.1.50.0040.01917.09
7.1.00.0070.07322.59
7.0.200.0000.00816.74
7.0.140.0000.07722.07
7.0.60.0070.08320.08
7.0.50.0100.07717.93
7.0.40.0100.06719.92
7.0.30.0570.06320.06
7.0.20.0330.04720.11
7.0.10.0200.07320.01
7.0.00.0070.09320.07
5.6.280.0100.06720.98
5.6.210.0170.04020.46
5.6.200.0030.04018.21
5.6.190.0100.04720.44
5.6.180.4000.04020.39
5.6.170.0300.05020.62
5.6.160.0100.08020.40
5.6.150.0070.03718.14
5.6.140.0070.08318.11
5.6.130.0100.08718.17
5.6.120.0170.07021.13
5.6.110.0030.04321.03
5.6.100.0100.08021.10
5.6.90.0000.06721.12
5.6.80.0130.06720.28
5.5.350.0230.07720.41
5.5.340.0070.08317.92
5.5.330.0100.07020.37
5.5.320.0270.04320.26
5.5.310.0330.08020.21
5.5.300.0000.09317.98
5.5.290.0130.07317.90
5.5.280.0100.05320.84
5.5.270.0000.04720.83
5.5.260.0070.05720.79
5.5.250.0030.08720.55
5.5.240.4000.04720.18
5.4.450.0870.07019.64
5.4.440.0630.06019.52
5.4.430.0200.06019.41
5.4.420.0170.06019.50
5.4.410.0370.05019.41
5.4.400.0170.07719.20
5.4.390.0230.06719.24
5.4.380.0100.06718.46
5.4.370.0170.05018.46
5.4.360.0200.04018.70
5.4.350.0100.05318.76
5.4.340.0200.04318.58
5.4.320.0060.03612.45
5.4.310.0020.04212.45
5.4.300.0070.04912.45
5.4.290.0100.07412.45
5.4.280.0090.05312.34
5.4.270.0100.05012.35
5.4.260.0100.05312.34
5.4.250.0110.05312.34
5.4.240.0110.05212.34
5.4.230.0090.05412.34
5.4.220.0110.05212.34
5.4.210.0090.05312.34
5.4.200.0130.05112.34
5.4.190.0120.05712.34
5.4.180.0180.07112.34
5.4.170.0140.04912.35
5.4.160.0100.05012.34
5.4.150.0130.04612.34
5.4.140.0080.05512.02
5.4.130.0100.05112.01
5.4.120.0090.05411.97
5.4.110.0120.05111.97
5.4.100.0110.05111.96
5.4.90.0120.05511.96
5.4.80.0140.05011.96
5.4.70.0120.05011.96
5.4.60.0090.05311.96
5.4.50.0130.05511.96
5.4.40.0100.04911.95
5.4.30.0110.04811.94
5.4.20.0060.05511.95
5.4.10.0110.04911.95
5.4.00.0130.05711.44
5.3.290.0060.04012.80
5.3.280.0120.07012.71
5.3.270.0140.06412.73
5.3.260.0170.05712.72
5.3.250.0100.06612.72
5.3.240.0100.05712.72
5.3.230.0090.05512.71
5.3.220.0110.05212.68
5.3.210.0080.05612.68
5.3.200.0080.05412.68
5.3.190.0090.05412.68
5.3.180.0140.05112.68
5.3.170.0140.05112.67
5.3.160.0090.05612.68
5.3.150.0120.05412.67
5.3.140.0110.05312.66
5.3.130.0120.05412.66
5.3.120.0080.05912.66
5.3.110.0070.06412.66
5.3.100.0120.05012.12
5.3.90.0170.04412.08
5.3.80.0150.05212.07
5.3.70.0140.04912.07
5.3.60.0110.06412.06
5.3.50.0060.04112.00
5.3.40.0060.04512.00
5.3.30.0110.03711.95
5.3.20.0080.04011.73
5.3.10.0030.04311.70
5.3.00.0080.03911.68
5.2.170.0080.0319.19
5.2.160.0070.0319.19
5.2.150.0090.0339.19
5.2.140.0070.0319.18
5.2.130.0110.0279.15
5.2.120.0040.0339.14
5.2.110.0130.0299.15
5.2.100.0080.0299.14
5.2.90.0060.0319.15
5.2.80.0060.0329.14
5.2.70.0040.0369.15
5.2.60.0040.0349.10
5.2.50.0050.0359.07
5.2.40.0100.0329.05
5.2.30.0090.0519.03
5.2.20.0080.0419.02
5.2.10.0100.0478.92
5.2.00.0060.0518.77
5.1.60.0080.0388.06
5.1.50.0080.0388.06
5.1.40.0080.0388.04
5.1.30.0120.0348.39
5.1.20.0080.0438.41
5.1.10.0070.0438.14
5.1.00.0090.0428.14
5.0.50.0050.0416.62
5.0.40.0120.0366.47
5.0.30.0060.0646.29
5.0.20.0060.0286.26
5.0.10.0060.0316.24
5.0.00.0110.0366.23
4.4.90.0100.0214.78
4.4.80.0070.0204.75
4.4.70.0040.0274.76
4.4.60.0050.0224.75
4.4.50.0070.0184.77
4.4.40.0030.0394.70
4.4.30.0060.0234.76
4.4.20.0070.0334.85
4.4.10.0140.0284.85
4.4.00.0050.0254.76
4.3.110.0040.0174.67
4.3.100.0070.0164.66
4.3.90.0070.0444.63
4.3.80.0050.0274.59
4.3.70.0090.0274.63
4.3.60.0040.0204.63
4.3.50.0030.0184.63
4.3.40.0020.0274.54
4.3.30.0050.0153.29
4.3.20.0020.0173.27
4.3.10.0040.0143.22
4.3.00.0070.0207.27

preferences:
44 ms | 401 KiB | 5 Q