3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "this (is (a) test) with (two parenthesis) duh"; $regex = '#\((([^()]+|(?R))*)\)#'; if (preg_match_all($regex, $string ,$matches)) { echo var_export($matches[1], true); } else { //no parenthesis echo $string; }

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.0030.01718.18
8.3.50.0150.00321.97
8.3.40.0100.00718.94
8.3.30.0090.00519.04
8.3.20.0040.00420.24
8.3.10.0040.00421.73
8.3.00.0050.00318.03
8.2.180.0140.00716.50
8.2.170.0110.00722.96
8.2.160.0100.00320.39
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0140.00726.16
8.2.120.0040.00421.12
8.2.110.0030.00722.38
8.2.100.0090.00319.82
8.2.90.0040.00419.17
8.2.80.0060.00317.97
8.2.70.0050.00317.75
8.2.60.0100.00017.65
8.2.50.0050.00318.07
8.2.40.0040.00418.16
8.2.30.0090.00018.17
8.2.20.0000.00817.79
8.2.10.0040.00418.02
8.2.00.0040.00417.72
8.1.280.0110.00325.92
8.1.270.0060.00323.88
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00323.95
8.1.230.0060.00619.15
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0040.00417.35
8.1.180.0050.00318.10
8.1.170.0000.00818.66
8.1.160.0040.00421.86
8.1.150.0050.00318.85
8.1.140.0030.00517.51
8.1.130.0030.00317.85
8.1.120.0070.00017.43
8.1.110.0000.00817.44
8.1.100.0050.00217.62
8.1.90.0070.00017.63
8.1.80.0000.00717.54
8.1.70.0050.00317.47
8.1.60.0090.00017.57
8.1.50.0040.00417.60
8.1.40.0060.00317.52
8.1.30.0000.00817.60
8.1.20.0050.00317.70
8.1.10.0040.00417.64
8.1.00.0070.00017.69
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0000.00718.54
8.0.270.0000.00817.19
8.0.260.0000.00817.30
8.0.250.0030.00317.05
8.0.240.0000.00817.11
8.0.230.0040.00416.93
8.0.220.0070.00016.89
8.0.210.0000.00717.00
8.0.200.0060.00017.05
8.0.190.0040.00417.08
8.0.180.0030.00516.95
8.0.170.0030.00517.00
8.0.160.0000.00716.89
8.0.150.0040.00416.94
8.0.140.0040.00416.95
8.0.130.0060.00013.39
8.0.120.0050.00316.97
8.0.110.0000.00716.95
8.0.100.0000.00716.86
8.0.90.0000.00716.96
8.0.80.0090.01216.93
8.0.70.0050.00316.90
8.0.60.0080.00016.85
8.0.50.0030.00516.99
8.0.30.0100.01317.23
8.0.20.0130.00717.40
8.0.10.0020.00516.89
8.0.00.0100.01116.94
7.4.330.0020.00215.07
7.4.320.0050.00216.72
7.4.300.0030.00316.67
7.4.290.0080.00016.70
7.4.280.0000.00816.73
7.4.270.0040.00416.77
7.4.260.0070.00316.66
7.4.250.0050.00316.63
7.4.240.0060.00216.67
7.4.230.0070.00016.52
7.4.220.0210.00316.85
7.4.210.0060.00916.67
7.4.200.0040.00416.74
7.4.160.0090.00616.66
7.4.150.0060.01217.40
7.4.140.0080.01217.86
7.4.130.0120.00516.71
7.4.120.0100.00616.66
7.4.110.0090.00916.75
7.4.100.0070.01116.63
7.4.90.0000.01716.81
7.4.80.0030.01519.39
7.4.70.0140.01116.77
7.4.60.0100.01016.89
7.4.50.0000.00416.45
7.4.40.0120.00316.57
7.4.30.0100.00616.66
7.4.00.0040.01115.29
7.3.330.0030.00313.14
7.3.320.0060.00013.20
7.3.310.0030.00316.42
7.3.300.0030.00316.36
7.3.290.0110.00316.23
7.3.280.0090.01016.35
7.3.270.0130.00617.40
7.3.260.0180.00516.50
7.3.250.0130.00616.41
7.3.240.0030.01516.53
7.3.230.0090.00916.80
7.3.210.0130.00316.38
7.3.200.0060.01019.39
7.3.190.0100.00616.66
7.3.180.0070.01616.60
7.3.170.0080.00816.43
7.3.160.0140.00316.72
7.3.120.0120.00614.82
7.3.10.0080.00316.73
7.3.00.0030.00916.87
7.2.330.0030.02016.58
7.2.320.0030.02016.81
7.2.310.0100.01316.60
7.2.300.0070.01116.63
7.2.290.0100.00616.60
7.2.130.0050.01017.03
7.2.120.0080.00616.89
7.2.110.0080.00317.02
7.2.100.0070.00516.75
7.2.90.0100.00416.89
7.2.80.0040.01016.93
7.2.70.0040.00716.94
7.2.60.0040.00916.89
7.2.50.0030.01116.94
7.2.40.0050.00617.02
7.2.30.0030.00917.12
7.2.20.0040.00617.00
7.2.10.0040.00716.97
7.2.00.0040.01017.88
7.1.250.0030.00716.01
7.1.100.0040.00718.18
7.1.70.0070.00017.13
7.1.60.0100.01619.25
7.1.50.0040.01817.16
7.1.00.0070.07322.33
7.0.200.0070.00017.03
7.0.140.0030.07022.06
7.0.60.0170.07319.83
7.0.50.0100.08017.94
7.0.40.0030.06320.20
7.0.30.0200.06720.18
7.0.20.0170.05020.02
7.0.10.0030.04320.03
7.0.00.0130.05720.14
5.6.280.0070.07020.98
5.6.210.0070.07320.76
5.6.200.0130.08318.16
5.6.190.0000.04720.57
5.6.180.0370.06720.48
5.6.170.0270.07720.52
5.6.160.0000.04320.37
5.6.150.0170.07718.21
5.6.140.0030.04318.21
5.6.130.0100.07318.21
5.6.120.0100.08721.14
5.6.110.0070.08720.91
5.6.100.0200.07320.99
5.6.90.0070.05020.98
5.6.80.0130.07720.40
5.5.350.0070.08020.42
5.5.340.0100.08017.88
5.5.330.0030.04720.40
5.5.320.0070.08020.41
5.5.310.0130.04320.18
5.5.300.0100.05017.98
5.5.290.0100.07717.91
5.5.280.0000.04320.87
5.5.270.0030.07020.96
5.5.260.0030.09020.72
5.5.250.0070.09020.57
5.5.240.4170.03720.36
5.4.450.0400.04719.43
5.4.440.0170.04019.39
5.4.430.0200.03719.42
5.4.420.0130.04319.09
5.4.410.0130.04319.27
5.4.400.0370.04019.09
5.4.390.0470.04719.06
5.4.380.0100.05718.68
5.4.370.0170.07018.67
5.4.360.0230.04318.68
5.4.350.0170.07318.66
5.4.340.0000.06718.73
5.4.320.0050.03612.45
5.4.310.0040.04012.45
5.4.300.0050.03912.45
5.4.290.0080.03912.45
5.4.280.0030.04012.35
5.4.270.0060.03612.35
5.4.260.0100.04912.35
5.4.250.0050.04012.35
5.4.240.0060.03812.35
5.4.230.0090.03712.34
5.4.220.0060.03712.34
5.4.210.0070.03412.34
5.4.200.0090.03512.34
5.4.190.0070.03412.34
5.4.180.0080.03812.34
5.4.170.0090.04612.35
5.4.160.0060.03512.34
5.4.150.0050.03612.34
5.4.140.0040.04312.02
5.4.130.0060.03512.02
5.4.120.0080.03211.97
5.4.110.0100.03111.97
5.4.100.0060.03411.97
5.4.90.0060.03611.96
5.4.80.0050.03811.96
5.4.70.0070.03311.96
5.4.60.0090.03111.96
5.4.50.0060.03511.96
5.4.40.0050.03611.95
5.4.30.0120.04411.95
5.4.20.0070.03411.95
5.4.10.0070.04111.95
5.4.00.0110.04511.43
5.3.290.0060.03912.80
5.3.280.0050.03912.70
5.3.270.0080.04512.72
5.3.260.0050.04112.72
5.3.250.0080.03612.72
5.3.240.0080.03612.72
5.3.230.0050.04512.71
5.3.220.0100.03312.68
5.3.210.0080.03812.68
5.3.200.0060.03712.68
5.3.190.0050.03912.68
5.3.180.0030.04112.67
5.3.170.0040.04012.67
5.3.160.0060.03712.68
5.3.150.0060.03912.67
5.3.140.0070.03712.66
5.3.130.0090.05112.65
5.3.120.0090.04912.66
5.3.110.0070.05912.65
5.3.100.0090.04212.12
5.3.90.0090.04412.08
5.3.80.0070.04112.07
5.3.70.0080.04512.07
5.3.60.0070.03412.06
5.3.50.0090.03712.00
5.3.40.0090.03712.00
5.3.30.0060.04011.96
5.3.20.0030.03911.74
5.3.10.0070.04211.72
5.3.00.0070.04111.69
5.2.170.0060.0299.19
5.2.160.0040.0379.19
5.2.150.0060.0299.19
5.2.140.0060.0289.19
5.2.130.0060.0279.15
5.2.120.0040.0519.15
5.2.110.0060.0279.15
5.2.100.0060.0279.15
5.2.90.0080.0269.15
5.2.80.0030.0329.15
5.2.70.0040.0319.15
5.2.60.0040.0309.10
5.2.50.0040.0309.07
5.2.40.0060.0299.06
5.2.30.0050.0319.04
5.2.20.0060.0279.02
5.2.10.0060.0308.94
5.2.00.0040.0348.79
5.1.60.0020.0268.08
5.1.50.0020.0278.07
5.1.40.0060.0318.06
5.1.30.0050.0318.41
5.1.20.0040.0278.43
5.1.10.0040.0308.15
5.1.00.0080.0238.15
5.0.50.0080.0216.63
5.0.40.0040.0196.49
5.0.30.0010.0346.30
5.0.20.0050.0196.28
5.0.10.0040.0196.25
5.0.00.0050.0436.25
4.4.90.0030.0194.78
4.4.80.0030.0154.75
4.4.70.0030.0174.75
4.4.60.0030.0154.75
4.4.50.0040.0194.77
4.4.40.0030.0264.71
4.4.30.0030.0154.76
4.4.20.0050.0144.84
4.4.10.0040.0164.85
4.4.00.0060.0254.76
4.3.110.0020.0174.67
4.3.100.0040.0154.66
4.3.90.0060.0124.63
4.3.80.0040.0234.59
4.3.70.0040.0164.63
4.3.60.0020.0154.63
4.3.50.0020.0174.63
4.3.40.0010.0264.54
4.3.30.0030.0153.30
4.3.20.0010.0173.28
4.3.10.0030.0163.24
4.3.00.0100.01315.27

preferences:
42.14 ms | 401 KiB | 5 Q