3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = "hello[/name/hello[/second]][/bye]"; if (preg_match_all('/\[((?:[^\[\]]*|(?R))*)\]/', $pattern, $matches)) { print_r($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.4.20.0100.01017.94
8.4.10.0130.00717.74
8.3.150.0120.00616.36
8.3.140.0000.00818.86
8.3.130.0080.00016.54
8.3.120.0060.00919.05
8.3.110.0030.00516.46
8.3.100.0090.00020.40
8.3.90.0060.01026.77
8.3.80.0030.00619.36
8.3.70.0150.00016.75
8.3.60.0170.00018.43
8.3.50.0110.00721.06
8.3.40.0120.00318.83
8.3.30.0140.00018.79
8.3.20.0000.00720.34
8.3.10.0070.00721.90
8.3.00.0060.00317.50
8.2.260.0090.00917.35
8.2.250.0080.00016.78
8.2.240.0100.00616.93
8.2.230.0030.00620.94
8.2.220.0080.00024.06
8.2.210.0090.00626.77
8.2.200.0060.00318.88
8.2.190.0100.00716.58
8.2.180.0120.00318.42
8.2.170.0110.01122.96
8.2.160.0070.00719.35
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0030.00618.90
8.2.110.0090.00022.23
8.2.100.0090.00317.72
8.2.90.0030.00518.03
8.2.80.0000.00819.17
8.2.70.0090.00017.63
8.2.60.0000.00817.63
8.2.50.0040.00417.75
8.2.40.0040.00418.09
8.2.30.0040.00417.93
8.2.20.0040.00417.68
8.2.10.0030.00518.00
8.2.00.0040.00417.99
8.1.310.0150.00016.64
8.1.300.0000.00816.56
8.1.290.0060.00330.84
8.1.280.0070.01425.92
8.1.270.0160.00320.32
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0050.00521.06
8.1.230.0080.00320.97
8.1.220.0000.00817.74
8.1.210.0000.00818.91
8.1.200.0030.00617.35
8.1.190.0060.00317.13
8.1.180.0060.00318.92
8.1.170.0000.00818.61
8.1.160.0070.00018.84
8.1.150.0040.00418.86
8.1.140.0040.00417.60
8.1.130.0000.00717.56
8.1.120.0050.00217.52
8.1.110.0000.00717.50
8.1.100.0040.00417.46
8.1.90.0000.00817.50
8.1.80.0000.00717.45
8.1.70.0000.00717.57
8.1.60.0000.00817.63
8.1.50.0000.00817.63
8.1.40.0050.00317.47
8.1.30.0060.00317.80
8.1.20.0060.00317.66
8.1.10.0080.00017.68
8.1.00.0030.00617.62
8.0.300.0000.00719.98
8.0.290.0070.00016.75
8.0.280.0040.00418.28
8.0.270.0040.00416.90
8.0.260.0030.00317.22
8.0.250.0070.00317.03
8.0.240.0080.00017.07
8.0.230.0070.00317.08
8.0.220.0000.00716.93
8.0.210.0030.00316.95
8.0.200.0040.00417.02
8.0.190.0000.00817.06
8.0.180.0030.00616.94
8.0.170.0070.00017.04
8.0.160.0040.00416.87
8.0.150.0070.00016.83
8.0.140.0040.00416.93
8.0.130.0030.00313.31
8.0.120.0000.00816.89
8.0.110.0000.00816.80
8.0.100.0040.00416.96
8.0.90.0020.00517.04
8.0.80.0070.01016.89
8.0.70.0000.00816.95
8.0.60.0000.00917.02
8.0.50.0040.00416.95
8.0.30.0060.01317.29
8.0.20.0100.01417.41
8.0.10.0040.00417.00
8.0.00.0090.00916.93
7.4.330.0030.00315.04
7.4.320.0000.00716.59
7.4.300.0030.00316.64
7.4.290.0030.00316.63
7.4.280.0040.00416.73
7.4.270.0000.00816.75
7.4.260.0040.00416.61
7.4.250.0000.00816.63
7.4.240.0050.00216.63
7.4.230.0030.00316.45
7.4.220.0030.01616.68
7.4.210.0100.01016.74
7.4.200.0030.00416.75
7.4.160.0030.01216.36
7.4.150.0060.01017.40
7.4.140.0100.01217.86
7.4.130.0140.00416.58
7.4.120.0110.00716.69
7.4.110.0120.00916.45
7.4.100.0130.01016.58
7.4.90.0060.01016.51
7.4.80.0100.00719.39
7.4.70.0100.00716.47
7.4.60.0080.00916.40
7.4.50.0080.00016.57
7.4.40.0100.00616.52
7.4.30.0070.01416.57
7.4.00.0040.01115.17
7.3.330.0000.00713.04
7.3.320.0050.00013.15
7.3.310.0000.00916.43
7.3.300.0030.00516.26
7.3.290.0070.00816.26
7.3.280.0080.01216.31
7.3.270.0110.00617.40
7.3.260.0130.00316.57
7.3.240.0090.00916.25
7.3.230.0100.01016.64
7.3.210.0130.00616.35
7.3.200.0100.01019.39
7.3.190.0130.00316.22
7.3.180.0080.00816.46
7.3.170.0060.01716.72
7.3.160.0110.00816.24
7.2.330.0070.01116.65
7.2.320.0070.01116.49
7.2.310.0090.00916.53
7.2.300.0060.01316.54
7.2.290.0100.01316.60
7.2.60.0160.00016.90
7.2.00.0040.01119.15
7.1.200.0030.01015.80
7.1.100.0070.00418.25
7.1.70.0000.00717.37
7.1.60.0130.01319.59
7.1.50.0230.01735.01
7.1.00.0030.07722.53
7.0.200.0000.00716.96
7.0.60.0070.06720.01
7.0.50.0170.04317.89
7.0.40.0030.08320.43
7.0.30.0370.07320.32
7.0.20.0200.09320.13
7.0.10.0070.04320.24
7.0.00.0130.05020.32
5.6.280.0000.07720.81
5.6.210.0100.07720.60
5.6.200.0100.07718.29
5.6.190.0000.05020.63
5.6.180.0470.04320.60
5.6.170.0500.06320.56
5.6.160.0100.08020.39
5.6.150.0070.08318.28
5.6.140.0030.06018.28
5.6.130.0130.04318.20
5.6.120.0070.09021.12
5.6.110.0070.04020.96
5.6.100.0100.08020.99
5.6.90.0030.04321.13
5.6.80.0200.07720.28
5.5.350.0230.07720.49
5.5.340.0070.08018.00
5.5.330.0100.06720.40
5.5.320.0030.05720.34
5.5.310.0370.06720.34
5.5.300.0030.08317.95
5.5.290.0100.03718.00
5.5.280.0070.04720.68
5.5.270.0170.05720.86
5.5.260.0200.07320.76
5.5.250.0030.08720.54
5.5.240.0030.08320.15
5.4.450.0130.06019.48
5.4.440.0270.07319.60
5.4.430.0200.07719.61
5.4.420.0130.07719.53
5.4.410.0200.06019.37
5.4.400.0170.04718.89
5.4.390.0300.05719.20
5.4.380.0230.06719.30
5.4.370.0130.06719.20
5.4.360.0330.04719.27
5.4.350.0230.06318.88
5.4.340.0170.07018.91
5.4.320.0170.07719.20
5.4.310.0230.06018.91
5.4.300.0230.06719.13
5.4.290.0200.07319.21
5.4.280.0500.05319.12
5.4.270.0130.05719.11
5.4.260.0230.06719.12
5.4.250.0200.05719.20
5.4.240.0300.04019.22
5.4.230.0100.07018.98
5.4.220.0130.06319.19
5.4.210.0270.05719.15
5.4.200.0270.05716.67
5.4.190.0270.05318.93
5.4.180.0230.06018.96
5.4.170.0230.05319.10
5.4.160.0230.07018.98
5.4.150.0170.07019.22
5.4.140.0230.06716.44
5.4.130.0100.08016.67
5.4.120.0230.06716.48
5.4.110.0330.05016.45
5.4.100.0170.06016.49
5.4.90.0100.06316.36
5.4.80.0170.06016.33
5.4.70.0170.06716.52
5.4.60.0270.05716.32
5.4.50.0130.07016.22
5.4.40.0170.06716.34
5.4.30.0300.05016.28
5.4.20.0130.06016.40
5.4.10.0230.06016.54
5.4.00.0230.06015.94
5.3.290.0330.05014.70
5.3.280.0270.06314.72
5.3.270.0330.05314.80
5.3.260.0170.08014.64
5.3.250.0200.06314.59
5.3.240.0200.07014.56
5.3.230.0230.06014.72
5.3.220.0300.06314.58
5.3.210.0170.07714.73
5.3.200.0270.05314.74
5.3.190.0370.05714.74
5.3.180.0300.05714.60
5.3.170.0170.07014.60
5.3.160.0130.08314.74
5.3.150.0130.05714.78
5.3.140.0100.07314.59
5.3.130.0200.09014.50
5.3.120.0300.06014.73
5.3.110.0270.08714.76
5.3.100.0230.05714.16
5.3.90.0270.06013.97
5.3.80.0300.06014.03
5.3.70.0270.06013.93
5.3.60.0200.06713.97
5.3.50.0230.06014.07
5.3.40.0330.05714.15
5.3.30.0170.05313.86
5.3.20.0230.05013.75
5.3.10.0200.05713.70
5.3.00.0170.06313.55
5.2.170.0230.03311.28
5.2.160.0070.06311.32
5.2.150.0230.05011.13
5.2.140.0130.04711.14
5.2.130.0100.06011.07
5.2.120.0270.04311.07
5.2.110.0170.05311.12
5.2.100.0200.04311.09
5.2.90.0170.04011.30
5.2.80.0170.05311.13
5.2.70.0130.04711.31
5.2.60.0200.05011.07
5.2.50.0170.05010.93
5.2.40.0270.04010.97
5.2.30.0170.04310.89
5.2.20.0130.04310.96
5.2.10.0130.05310.95
5.2.00.0100.04010.70
5.1.60.0000.05310.06
5.1.50.0170.0439.98
5.1.40.0170.05010.07
5.1.30.0130.04710.32
5.1.20.0100.04310.45
5.1.10.0200.04710.16
5.1.00.0170.04310.16
5.0.50.0100.0378.66
5.0.40.0000.0438.39
5.0.30.0030.0608.33
5.0.20.0070.0408.17
5.0.10.0070.0378.34
5.0.00.0030.0578.25
4.4.90.0170.0205.95
4.4.80.0000.0335.94
4.4.70.0070.0235.92
4.4.60.0100.0205.89
4.4.50.0200.0235.81
4.4.40.0070.0335.92
4.4.30.0100.0235.87
4.4.20.0100.0235.90
4.4.10.0130.0175.88
4.4.00.0030.0505.91
4.3.110.0100.0305.77
4.3.100.0070.0305.83
4.3.90.0100.0275.85
4.3.80.0100.0375.74
4.3.70.0000.0335.85
4.3.60.0070.0305.85
4.3.50.0100.0205.73
4.3.40.0100.0335.80
4.3.30.0070.0304.63
4.3.20.0130.0234.62
4.3.10.0030.0274.43
4.3.00.0030.0207.20

preferences:
77.23 ms | 403 KiB | 5 Q