3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = <<<REGEXP /(?(R) # in case of recursion match parentheses \(((?>[^\s()]+)|(?R))*\) | # else match a link with title ^\((((?>[^\s()]+)|(?R))*)(\s+"(.*?)")?\) )/x REGEXP; print $pattern;

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.0070.00716.38
8.3.50.0080.00822.06
8.3.40.0120.00318.67
8.3.30.0060.01018.82
8.3.20.0070.00020.09
8.3.10.0040.00423.57
8.3.00.0040.00419.38
8.2.180.0070.01118.16
8.2.170.0090.00622.96
8.2.160.0000.01320.35
8.2.150.0070.00024.18
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0080.00320.39
8.2.110.0060.00322.11
8.2.100.0120.00019.57
8.2.90.0040.00419.19
8.2.80.0040.00417.97
8.2.70.0090.00317.38
8.2.60.0090.00017.93
8.2.50.0060.00318.07
8.2.40.0060.00319.94
8.2.30.0050.00218.31
8.2.20.0070.00017.67
8.2.10.0000.00818.04
8.2.00.0040.00417.72
8.1.280.0110.00425.92
8.1.270.0080.00023.82
8.1.260.0000.00726.35
8.1.250.0060.00328.09
8.1.240.0060.00323.78
8.1.230.0080.00318.95
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0060.00317.13
8.1.190.0040.00417.23
8.1.180.0000.01019.01
8.1.170.0040.00418.52
8.1.160.0000.00721.94
8.1.150.0000.00718.55
8.1.140.0000.00717.43
8.1.130.0030.00317.84
8.1.120.0000.00717.44
8.1.110.0060.00317.27
8.1.100.0070.00017.40
8.1.90.0040.00417.29
8.1.80.0000.00717.28
8.1.70.0060.00017.35
8.1.60.0030.00617.54
8.1.50.0040.00417.43
8.1.40.0070.00017.37
8.1.30.0110.00017.51
8.1.20.0000.00717.44
8.1.10.0000.01017.45
8.1.00.0000.00717.30
8.0.300.0000.00818.77
8.0.290.0040.00417.16
8.0.280.0030.00318.48
8.0.270.0030.00317.23
8.0.260.0030.00317.11
8.0.250.0000.00716.90
8.0.240.0070.00317.01
8.0.230.0040.00416.88
8.0.220.0060.00016.81
8.0.210.0040.00416.84
8.0.200.0000.00616.87
8.0.190.0050.00316.84
8.0.180.0030.00716.88
8.0.170.0080.00016.89
8.0.160.0030.00316.80
8.0.150.0070.00016.77
8.0.140.0080.00016.90
8.0.130.0000.00513.34
8.0.120.0000.00816.75
8.0.110.0070.00016.90
8.0.100.0000.00816.70
8.0.90.0050.00316.92
8.0.80.0030.01216.91
8.0.70.0000.00716.75
8.0.60.0060.00316.89
8.0.50.0000.00816.71
8.0.30.0120.00917.10
8.0.20.0160.00317.40
8.0.10.0040.00416.90
8.0.00.0100.00816.70
7.4.330.0020.00215.08
7.4.320.0000.00616.52
7.4.300.0000.00616.42
7.4.290.0040.00416.42
7.4.280.0080.00016.54
7.4.270.0030.00316.57
7.4.260.0000.00716.52
7.4.250.0030.00516.41
7.4.240.0000.00716.53
7.4.230.0000.00616.42
7.4.220.0100.00716.43
7.4.210.0040.01116.46
7.4.200.0000.00816.40
7.4.190.0070.00016.59
7.4.160.0090.01216.36
7.4.150.0060.01217.40
7.4.140.0110.01017.86
7.4.130.0050.01216.48
7.4.120.0120.00416.49
7.4.110.0150.00316.45
7.4.100.0100.00916.56
7.4.90.0140.00416.33
7.4.80.0130.00919.39
7.4.70.0120.00616.25
7.4.60.0160.00016.36
7.4.50.0030.00616.38
7.4.40.0070.01016.36
7.4.30.0030.01216.53
7.4.00.0070.01014.96
7.3.330.0000.00613.09
7.3.320.0000.00613.09
7.3.310.0070.00016.23
7.3.300.0070.00016.29
7.3.290.0120.00616.25
7.3.280.0110.00716.26
7.3.270.0110.00617.40
7.3.260.0040.01416.26
7.3.250.0080.01016.45
7.3.240.0050.01116.20
7.3.230.0120.00416.39
7.3.210.0110.01116.57
7.3.200.0090.00619.39
7.3.190.0090.01216.19
7.3.180.0060.00916.16
7.3.170.0150.00516.27
7.3.160.0040.01216.28
7.3.120.0030.01014.93
7.2.330.0070.01316.25
7.2.320.0070.01116.52
7.2.310.0060.01516.61
7.2.300.0000.01616.27
7.2.290.0080.00816.18
7.2.60.0060.00616.88
7.2.00.0130.00619.13
7.1.200.0130.00015.66
7.1.100.0030.00918.05
7.1.70.0070.00016.74
7.1.60.0000.02419.46
7.1.50.0100.01416.59
7.1.00.0030.07022.45
7.0.200.0000.00916.39
7.0.140.0030.07021.95
7.0.60.0030.05720.05
7.0.50.0030.06317.88
7.0.40.0070.04720.09
7.0.30.0100.05020.04
7.0.20.0330.08020.17
7.0.10.0030.04720.16
7.0.00.0030.09020.18
5.6.280.0100.08720.80
5.6.210.0170.06020.46
5.6.200.0070.07318.18
5.6.190.0030.04320.39
5.6.180.0270.03320.58
5.6.170.0230.07720.54
5.6.160.0100.08720.54
5.6.150.0070.08318.13
5.6.140.0030.03718.16
5.6.130.0130.07718.18
5.6.120.0100.06720.98
5.6.110.0070.06721.13
5.6.100.0030.04320.98
5.6.90.0000.09320.88
5.6.80.0130.07320.38
5.5.350.0270.06020.39
5.5.340.0070.04317.90
5.5.330.0100.06720.07
5.5.320.0030.07320.20
5.5.310.0230.06320.50
5.5.300.0070.06717.90
5.5.290.0030.09017.91
5.5.280.0200.06720.66
5.5.270.0030.05320.86
5.5.260.0170.05720.93
5.5.250.0070.08020.77
5.5.240.0070.05720.18
5.4.450.0870.06019.55
5.4.440.0700.06719.21
5.4.430.0730.05719.55
5.4.420.0830.07019.36
5.4.410.0600.05718.93
5.4.400.0700.04718.92
5.4.390.0830.08319.20
5.4.380.0100.06018.77
5.4.370.0170.05018.48
5.4.360.0130.05018.58
5.4.350.0170.05018.75
5.4.340.0130.05018.50
5.4.320.0060.03612.45
5.4.310.0050.03812.45
5.4.300.0050.04112.45
5.4.290.0160.05612.45
5.4.280.0210.04612.34
5.4.270.0220.05312.34
5.4.260.0120.06012.35
5.4.250.0140.05412.35
5.4.240.0190.04912.35
5.4.230.0170.05512.34
5.4.220.0120.05812.34
5.4.210.0200.04912.34
5.4.200.0200.05212.34
5.4.190.0190.05012.33
5.4.180.0140.05312.33
5.4.170.0130.05512.34
5.4.160.0200.04612.34
5.4.150.0170.05112.34
5.4.140.0230.06412.02
5.4.130.0190.05112.01
5.4.120.0190.05711.97
5.4.110.0120.05011.96
5.4.100.0150.04911.96
5.4.90.0130.06311.96
5.4.80.0130.05011.96
5.4.70.0150.04811.96
5.4.60.0120.05311.96
5.4.50.0120.06011.96
5.4.40.0150.03711.95
5.4.30.0140.05011.95
5.4.20.0150.06011.95
5.4.10.0160.05811.95
5.4.00.0150.05611.44
5.3.290.0060.03812.80
5.3.280.0180.05412.71
5.3.270.0140.05512.72
5.3.260.0170.05612.72
5.3.250.0160.05012.72
5.3.240.0200.07812.71
5.3.230.0120.06012.71
5.3.220.0100.06012.68
5.3.210.0130.05912.68
5.3.200.0190.05512.68
5.3.190.0230.05012.68
5.3.180.0180.06012.67
5.3.170.0180.05312.67
5.3.160.0150.06412.68
5.3.150.0140.05812.68
5.3.140.0210.05512.66
5.3.130.0210.05712.66
5.3.120.0090.09712.66
5.3.110.0110.06812.66
5.3.100.0170.04912.12
5.3.90.0180.07912.08
5.3.80.0200.06712.07
5.3.70.0160.05712.07
5.3.60.0150.05712.07
5.3.50.0150.05512.00
5.3.40.0130.05612.00
5.3.30.0100.05911.94
5.3.20.0180.06011.71
5.3.10.0220.07811.69
5.3.00.0200.08511.67
5.2.170.0230.0729.18
5.2.160.0180.0499.18
5.2.150.0140.0429.18
5.2.140.0120.0449.17
5.2.130.0180.0389.13
5.2.120.0060.0479.14
5.2.110.0120.0419.14
5.2.100.0110.0429.13
5.2.90.0100.0429.13
5.2.80.0170.0419.13
5.2.70.0200.0369.13
5.2.60.0090.0469.08
5.2.50.0140.0429.05
5.2.40.0090.0429.03
5.2.30.0180.0419.00
5.2.20.0170.0379.01
5.2.10.0100.0438.93
5.2.00.0150.0458.79
5.1.60.0120.0348.07
5.1.50.0130.0328.07
5.1.40.0110.0288.06
5.1.30.0100.0338.41
5.1.20.0120.0368.43
5.1.10.0090.0328.15
5.1.00.0100.0358.15
5.0.50.0190.0466.63
5.0.40.0150.0316.48
5.0.30.0100.0416.30
5.0.20.0080.0236.27
5.0.10.0070.0246.25
5.0.00.0080.0386.24
4.4.90.0070.0224.78
4.4.80.0100.0224.75
4.4.70.0030.0264.75
4.4.60.0030.0254.75
4.4.50.0060.0224.77
4.4.40.0060.0324.71
4.4.30.0100.0144.76
4.4.20.0050.0244.85
4.4.10.0110.0204.85
4.4.00.0130.0384.76
4.3.110.0040.0484.67
4.3.100.0080.0234.67
4.3.90.0060.0234.64
4.3.80.0070.0374.59
4.3.70.0100.0194.63
4.3.60.0040.0304.63
4.3.50.0080.0244.63
4.3.40.0100.0424.54
4.3.30.0090.0233.30
4.3.20.0060.0163.28
4.3.10.0050.0223.21
4.3.00.0170.0236.93

preferences:
49.26 ms | 401 KiB | 5 Q