3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '(ab(cd)ef)'; preg_match_all('@\( ( ( (?>[^()]+) | (?R) )+ ) \)@x', $string, $matches); mb_ereg('\([^()]+\)', $string, $regs); var_dump($matches, $regs);

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.0110.00418.68
8.3.50.0180.00521.21
8.3.40.0130.00918.92
8.3.30.0070.00720.34
8.3.20.0050.00320.29
8.3.10.0080.00022.17
8.3.00.0000.00822.52
8.2.180.0120.00316.75
8.2.170.0090.00622.96
8.2.160.0100.00320.57
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0060.00326.16
8.2.120.0000.00819.66
8.2.110.0030.00622.38
8.2.100.0060.00619.70
8.2.90.0040.00418.00
8.2.80.0030.00619.09
8.2.70.0030.00617.88
8.2.60.0000.00817.75
8.2.50.0080.00017.68
8.2.40.0080.00019.34
8.2.30.0050.00217.96
8.2.20.0030.00517.82
8.2.10.0000.00817.79
8.2.00.0040.00417.93
8.1.280.0110.00425.92
8.1.270.0080.00024.66
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0050.00520.71
8.1.230.0060.00621.04
8.1.220.0080.00017.74
8.1.210.0030.00518.77
8.1.200.0000.00817.47
8.1.190.0000.00817.23
8.1.180.0030.00818.10
8.1.170.0080.00017.69
8.1.160.0070.00022.16
8.1.150.0040.00418.89
8.1.140.0040.00417.54
8.1.130.0080.00017.95
8.1.120.0000.00717.66
8.1.110.0000.00817.68
8.1.100.0050.00217.73
8.1.90.0000.00717.70
8.1.80.0000.00717.66
8.1.70.0030.00317.63
8.1.60.0060.00317.82
8.1.50.0000.00817.63
8.1.40.0040.00417.73
8.1.30.0000.00817.70
8.1.20.0040.00417.88
8.1.10.0040.00417.63
8.1.00.0040.00417.62
8.0.300.0000.00818.93
8.0.290.0030.00516.75
8.0.280.0040.00418.51
8.0.270.0000.00717.34
8.0.260.0000.00816.95
8.0.250.0030.00317.08
8.0.240.0000.00817.23
8.0.230.0000.00717.10
8.0.220.0000.00717.03
8.0.210.0050.00217.10
8.0.200.0030.00317.13
8.0.190.0000.00717.05
8.0.180.0000.00717.10
8.0.170.0040.00417.13
8.0.160.0040.00416.99
8.0.150.0040.00417.04
8.0.140.0000.00817.06
8.0.130.0030.00313.51
8.0.120.0000.00817.15
8.0.110.0000.00717.05
8.0.100.0040.00417.13
8.0.90.0050.00217.00
8.0.80.0090.00617.12
8.0.70.0030.00516.88
8.0.60.0000.00717.16
8.0.50.0000.00917.11
8.0.30.0120.00917.22
8.0.20.0070.01117.40
8.0.10.0000.00717.13
8.0.00.0140.00516.86
7.4.330.0000.00615.00
7.4.320.0040.00416.71
7.4.300.0000.00616.76
7.4.290.0070.00016.88
7.4.280.0070.00016.64
7.4.270.0030.00316.88
7.4.260.0030.00316.86
7.4.250.0000.00816.84
7.4.240.0020.00516.86
7.4.230.0000.00716.82
7.4.220.0090.00616.86
7.4.210.0070.01116.77
7.4.200.0020.00516.97
7.4.190.0030.00516.78
7.4.160.0060.01116.71
7.4.150.0080.01117.40
7.4.140.0200.00817.86
7.4.130.0130.00816.71
7.4.120.0120.00516.71
7.4.110.0120.00616.55
7.4.100.0130.00617.09
7.4.90.0030.01316.49
7.4.80.0100.01019.39
7.4.70.0050.01116.50
7.4.60.0100.00716.52
7.4.50.0000.00516.66
7.4.40.0100.00522.77
7.4.30.0170.00016.60
7.4.00.0120.00315.34
7.3.330.0030.00313.10
7.3.320.0000.00513.15
7.3.310.0070.00016.50
7.3.300.0000.00716.35
7.3.290.0080.00516.40
7.3.280.0090.00516.32
7.3.270.0030.01317.40
7.3.260.0110.00516.25
7.3.250.0160.00616.44
7.3.240.0070.01116.44
7.3.230.0100.00716.39
7.3.210.0140.00716.49
7.3.200.0090.00919.39
7.3.190.0120.00616.81
7.3.180.0060.01316.48
7.3.170.0060.01416.43
7.3.160.0070.01016.61
7.3.120.0070.00715.13
7.2.330.0030.01416.58
7.2.320.0100.01316.89
7.2.310.0070.01016.73
7.2.300.0200.00316.42
7.2.290.0050.01116.60
7.2.60.0060.00617.05
7.2.00.0030.01019.08
7.1.200.0030.00615.91
7.1.100.0040.00718.45
7.1.70.0080.00317.01
7.1.60.0110.01519.21
7.1.50.0030.01716.87
7.1.00.0030.06322.33
7.0.200.0130.00714.93
7.0.140.0100.06722.12
7.0.60.0100.05720.03
7.0.50.0100.06717.93
7.0.40.0100.07320.26
7.0.30.0600.06720.23
7.0.20.0230.07720.20
7.0.10.0100.08320.02
7.0.00.0200.08020.11
5.6.280.0030.07321.06
5.6.210.0170.07720.70
5.6.200.0100.03318.16
5.6.190.0130.07720.33
5.6.180.0270.06720.61
5.6.170.0230.05020.38
5.6.160.0070.08320.37
5.6.150.0000.05318.18
5.6.140.0130.07718.13
5.6.130.0130.07318.21
5.6.120.0100.08320.98
5.6.110.0000.04321.11
5.6.100.0130.07720.96
5.6.90.0170.08020.98
5.6.80.0030.04020.47
5.5.350.0000.08320.34
5.5.340.0030.07717.91
5.5.330.0130.07020.19
5.5.320.0170.04320.29
5.5.310.0230.04020.32
5.5.300.0130.05717.91
5.5.290.0070.08317.88
5.5.280.0070.04320.97
5.5.270.0070.05720.78
5.5.260.0130.07020.83
5.5.250.0230.07020.57
5.5.240.0200.03720.00
5.4.450.0830.07719.14
5.4.440.0270.06019.52
5.4.430.0730.04719.54
5.4.420.0370.06019.57
5.4.410.0000.06719.47
5.4.400.0370.05019.13
5.4.390.0830.05718.78
5.4.380.0300.04718.58
5.4.370.0270.04018.48
5.4.360.0130.05018.56
5.4.350.0090.04011.97
5.4.340.0060.03811.97
5.4.320.0060.03712.46
5.4.310.0060.03912.45
5.4.300.0030.03812.45
5.4.290.0070.03612.45
5.4.280.0090.03312.34
5.4.270.0040.04412.34
5.4.260.0090.03512.34
5.4.250.0130.06018.88
5.4.240.0100.05018.70
5.4.230.0130.04718.74
5.4.220.0100.05018.97
5.4.210.0100.04718.92
5.4.200.0130.04718.75
5.4.190.0030.05318.63
5.4.180.0100.05318.97
5.4.170.0070.05018.93
5.4.160.0100.05018.78
5.4.150.0070.05018.73
5.4.140.0030.07016.31
5.4.130.0100.04316.56
5.4.120.0130.04716.37
5.4.110.0130.04716.54
5.4.100.0200.03316.40
5.4.90.0170.04016.26
5.4.80.0130.04716.27
5.4.70.0070.05016.27
5.4.60.0030.06316.37
5.4.50.0170.04716.37
5.4.40.0070.07316.50
5.4.30.0100.06716.23
5.4.20.0100.04316.17
5.4.10.0070.07316.20
5.4.00.0100.05015.95
5.3.290.0060.03912.80
5.3.280.0070.05014.44
5.3.270.0100.05014.69
5.3.260.0070.05314.47
5.3.250.0030.05714.72
5.3.240.0100.05714.52
5.3.230.0070.05314.61
5.3.220.0130.06714.57
5.3.210.0130.05314.43
5.3.200.0270.04014.42
5.3.190.0130.07014.71
5.3.180.0030.05314.43
5.3.170.0030.05314.48
5.3.160.0030.05314.41
5.3.150.0070.05714.58
5.3.140.0070.05314.57
5.3.130.0170.04314.46
5.3.120.0070.07014.57
5.3.110.0070.08014.56
5.3.100.0070.06313.89
5.3.90.0100.07713.71
5.3.80.0030.05313.79
5.3.70.0070.05014.03
5.3.60.0070.05013.83
5.3.50.0100.04313.80
5.3.40.0100.04713.83
5.3.30.0130.04313.90
5.3.20.0100.06313.68
5.3.10.0100.04313.42
5.3.00.0130.04713.79
5.2.170.0030.04011.07
5.2.160.0070.04311.04
5.2.150.0130.03311.06
5.2.140.0100.03711.04
5.2.130.0070.03711.11
5.2.120.0070.03710.93
5.2.110.0030.05311.10
5.2.100.0070.03711.01
5.2.90.0070.03711.11
5.2.80.0130.03310.85
5.2.70.0070.04010.99
5.2.60.0070.04010.88
5.2.50.0070.04010.93
5.2.40.0100.03311.01
5.2.30.0030.04310.89
5.2.20.0070.03711.06
5.2.10.0030.03710.69
5.2.00.0000.04710.79
5.1.60.0100.02710.04
5.1.50.0130.04010.14
5.1.40.0000.04010.04
5.1.30.0030.03710.09
5.1.20.0070.03710.23
5.1.10.0070.04310.15
5.1.00.0100.03010.08
5.0.50.0100.0209.91
5.0.40.0070.0239.91
5.0.30.0100.0479.91
5.0.20.0000.0339.91
5.0.10.0030.0279.91
5.0.00.0070.0609.91
4.4.90.0030.0209.91
4.4.80.0070.0179.91
4.4.70.0000.0309.91
4.4.60.0000.0339.91
4.4.50.0000.0239.91
4.4.40.0070.0379.91
4.4.30.0000.0239.91
4.4.20.0000.0239.91
4.4.10.0000.0339.91
4.4.00.0000.0339.91
4.3.110.0070.0179.91
4.3.100.0030.0209.91
4.3.90.0030.0209.91
4.3.80.0000.0379.91
4.3.70.0030.0209.91
4.3.60.0000.0239.91
4.3.50.0000.0279.91
4.3.40.0070.0279.91
4.3.30.0000.0239.91
4.3.20.0000.0239.91
4.3.10.0000.0239.91
4.3.00.0200.0238.10

preferences:
46.42 ms | 401 KiB | 5 Q