3v4l.org

run code in 300+ PHP versions simultaneously
<?php class x extends RecursiveRegexIterator{} $arr = new RecursiveArrayIterator([0,[1,2]]); $x = new x($arr, '/.*/'); $x->next(); $child = $x->getChildren(); var_dump(get_class($child));

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.0060.01218.20
8.3.50.0130.00722.09
8.3.40.0070.00718.69
8.3.30.0040.01218.96
8.3.20.0000.00720.34
8.3.10.0090.00620.57
8.3.00.0030.00519.25
8.2.180.0090.00918.66
8.2.170.0040.01122.96
8.2.160.0030.01720.57
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0080.00022.25
8.2.110.0110.00022.20
8.2.100.0030.00917.91
8.2.90.0080.00019.09
8.2.80.0040.00417.97
8.2.70.0030.00617.75
8.2.60.0000.00917.80
8.2.50.0050.00318.10
8.2.40.0040.00417.97
8.2.30.0050.00219.14
8.2.20.0000.00717.71
8.2.10.0050.00218.08
8.2.00.0040.00417.79
8.1.280.0120.00325.92
8.1.270.0000.00722.06
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00324.05
8.1.230.0040.00717.71
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0030.00617.35
8.1.190.0080.00017.23
8.1.180.0000.00818.10
8.1.170.0040.00418.61
8.1.160.0040.00421.96
8.1.150.0070.00318.84
8.1.140.0040.00417.45
8.1.130.0000.00717.83
8.1.120.0040.00417.45
8.1.110.0040.00417.61
8.1.100.0020.00517.51
8.1.90.0050.00217.46
8.1.80.0070.00017.57
8.1.70.0000.00717.42
8.1.60.0040.00417.63
8.1.50.0060.00317.60
8.1.40.0050.00317.54
8.1.30.0090.00017.63
8.1.20.0080.00017.63
8.1.10.0030.00517.55
8.1.00.0000.00817.64
8.0.300.0000.00718.77
8.0.290.0070.00016.75
8.0.280.0030.00318.46
8.0.270.0000.00717.12
8.0.260.0060.00017.17
8.0.250.0030.00317.04
8.0.240.0040.00417.02
8.0.230.0000.00717.05
8.0.220.0000.00717.04
8.0.210.0000.00716.97
8.0.200.0040.00417.02
8.0.190.0040.00417.09
8.0.180.0070.00016.91
8.0.170.0040.00416.99
8.0.160.0070.00316.91
8.0.150.0000.00716.88
8.0.140.0000.00716.95
8.0.130.0040.00413.39
8.0.120.0050.00316.93
8.0.110.0040.00416.96
8.0.100.0070.00017.03
8.0.90.0000.00716.83
8.0.80.0070.01016.99
8.0.70.0000.00716.77
8.0.60.0000.00716.96
8.0.50.0040.00416.90
8.0.30.0140.00617.13
8.0.20.0090.01117.40
8.0.10.0000.00816.95
8.0.00.0090.00816.79
7.4.330.0000.00515.15
7.4.320.0000.00616.59
7.4.300.0000.00616.63
7.4.290.0000.00716.65
7.4.280.0000.00716.65
7.4.270.0000.00716.54
7.4.260.0030.00516.72
7.4.250.0030.00516.59
7.4.240.0030.00416.70
7.4.230.0070.00016.63
7.4.220.0150.00416.65
7.4.210.0060.00916.70
7.4.200.0000.00716.68
7.4.160.0060.00916.75
7.4.150.0110.00717.40
7.4.140.0110.00717.86
7.4.130.0100.01016.49
7.4.120.0110.00616.58
7.4.110.0040.01416.73
7.4.100.0140.00416.59
7.4.90.0120.00616.82
7.4.80.0100.01318.80
7.4.70.0060.01516.33
7.4.60.0090.00616.46
7.4.50.0060.00316.68
7.4.40.0100.00716.50
7.4.30.0000.01716.62
7.4.00.0040.00714.89
7.3.330.0000.00513.21
7.3.320.0050.00013.39
7.3.310.0000.00716.36
7.3.300.0000.00716.26
7.3.290.0030.01616.39
7.3.280.0070.01016.35
7.3.270.0170.00017.40
7.3.260.0110.00616.94
7.3.250.0120.01016.68
7.3.240.0030.01616.41
7.3.230.0060.00916.63
7.3.210.0140.00316.45
7.3.200.0110.01119.39
7.3.190.0090.01216.70
7.3.180.0160.00016.64
7.3.170.0140.00716.56
7.3.160.0120.00316.56
7.3.10.0070.00716.63
7.3.00.0070.00716.84
7.2.330.0110.00616.50
7.2.320.0090.01016.76
7.2.310.0050.01116.72
7.2.300.0040.01316.72
7.2.290.0040.01216.81
7.2.130.0280.00016.64
7.2.120.0130.00316.66
7.2.110.0200.00716.52
7.2.100.0160.00816.55
7.2.90.0110.01516.78
7.2.80.0030.01716.82
7.2.70.0110.01616.71
7.2.60.0230.00716.87
7.2.50.0230.00316.85
7.2.40.0210.00816.75
7.2.30.0150.00916.95
7.2.20.0190.00516.76
7.2.10.0250.00916.84
7.2.00.0090.00618.05
7.1.250.0070.00715.80
7.1.200.0000.01115.83
7.1.100.0090.00318.24
7.1.70.0040.00417.20
7.1.60.0150.01119.32
7.1.50.0140.01117.16
7.1.00.0000.08022.41
7.0.200.0040.00416.46
7.0.140.0070.07022.15
7.0.60.0030.08719.93
7.0.50.0170.07317.88
7.0.40.0070.08320.10
7.0.30.0170.04320.09
7.0.20.0230.08720.18
7.0.10.0070.08320.09
7.0.00.0030.04320.20
5.6.280.0030.07321.08
5.6.210.0100.06320.63
5.6.200.0070.08318.18
5.6.190.0100.05720.39
5.6.180.3330.04720.52
5.6.170.0370.07320.45
5.6.160.0030.08020.52
5.6.150.0100.04318.15
5.6.140.0030.04018.18
5.6.130.0200.07318.17
5.6.120.0070.06721.10
5.6.110.0130.08020.90
5.6.100.0170.06721.11
5.6.90.0070.08721.01
5.6.80.0070.08020.39
5.6.70.3370.03320.42
5.5.350.0000.09020.38
5.5.340.0030.05718.08
5.5.330.0030.04720.57
5.5.320.0230.03720.27
5.5.310.0300.05020.28
5.5.300.0030.04017.98
5.5.290.0100.07717.93
5.5.280.0100.06720.89
5.5.270.0030.04020.80
5.5.260.0100.07720.79
5.5.250.0070.08720.61
5.5.240.0030.06720.13
5.4.450.2970.04019.57
5.4.440.3830.03719.64
5.4.430.3470.04019.57
5.4.420.2930.04019.58
5.4.410.3330.03719.18
5.4.400.3830.04019.22
5.4.390.3500.04319.16
5.4.380.3400.03719.14
5.4.370.3100.04719.20
5.4.360.0130.04019.10
5.4.350.3100.04019.08
5.4.340.4070.04019.07
5.4.320.3530.03719.08
5.4.310.3500.03719.32
5.4.300.3870.03319.16
5.4.290.4000.03318.87
5.4.280.4270.02719.19
5.4.270.3800.04019.16
5.4.260.3600.04019.19
5.4.250.3570.03718.98
5.4.240.4130.04718.98
5.4.230.3530.04018.98
5.4.220.3570.03319.19
5.4.210.3370.03718.97
5.4.200.3270.03719.21
5.4.190.3630.03319.21
5.4.180.3330.03718.97
5.4.170.3300.04319.15
5.4.160.3630.04019.18
5.4.150.3600.04018.94
5.4.140.3470.03316.36
5.4.130.2370.03716.34
5.4.120.0100.07016.41
5.4.110.3400.04016.54
5.4.100.3200.03716.45
5.4.90.3500.03316.27
5.4.80.3400.04016.43
5.4.70.3400.03716.44
5.4.60.3700.04316.56
5.4.50.0070.06316.51
5.4.40.3570.03316.53
5.4.30.2570.03016.57
5.4.20.3330.03016.16
5.4.10.0030.04716.23
5.4.00.0070.03015.83
5.3.290.3500.04314.78
5.3.280.3300.03314.75
5.3.270.3430.04014.52
5.3.260.3800.04314.51
5.3.250.3500.03714.63
5.3.240.3430.03014.58
5.3.230.0070.04014.51
5.3.220.2500.04314.50
5.3.210.3100.03314.57
5.3.200.3500.03314.48
5.3.190.3430.04014.48
5.3.180.3430.03714.57
5.3.170.3770.04714.54
5.3.160.3630.03014.48
5.3.150.0070.07714.65
5.3.140.1530.06314.48
5.3.130.3300.03314.57
5.3.120.3000.03714.53
5.3.110.2530.03714.52
5.3.100.2000.03713.95
5.3.90.2930.03013.94
5.3.80.2370.04014.04
5.3.70.0000.04014.10
5.3.60.0070.03313.93
5.3.50.1300.03014.12
5.3.40.2370.03713.92
5.3.30.0100.02713.91
5.3.20.0630.03313.60
5.3.10.2630.04013.89
5.3.00.3170.03313.69
5.2.170.2470.03011.23
5.2.160.2530.03011.26
5.2.150.1630.02311.07
5.2.140.0030.02711.12
5.2.130.1070.03311.06
5.2.120.2230.03311.34
5.2.110.2470.02711.05
5.2.100.2930.02311.22
5.2.90.2630.03011.11
5.2.80.3000.03311.01
5.2.70.3070.02711.02
5.2.60.2730.03310.96
5.2.50.2370.05311.09
5.2.40.2470.02710.99
5.2.30.2470.03710.87
5.2.20.2400.03010.96
5.2.10.0130.02310.86
5.2.00.0000.06710.83
5.1.60.0070.03710.07
5.1.50.2170.0239.89
5.1.40.2430.0239.88
5.1.30.2270.02310.45
5.1.20.2400.02710.28
5.1.10.2500.02010.00
5.1.00.2070.03010.14
5.0.50.0070.0408.53
5.0.40.0000.0278.32
5.0.30.0000.0538.13
5.0.20.0030.0438.17
5.0.10.1270.0208.29
5.0.00.1200.0378.13
4.4.90.1370.0207.11
4.4.80.1070.0137.11
4.4.70.1230.0207.11
4.4.60.0330.0137.11
4.4.50.0070.0337.11
4.4.40.0270.0237.11
4.4.30.1330.0207.11
4.4.20.1130.0207.11
4.4.10.0000.0407.11
4.4.00.0030.0277.11
4.3.110.0000.0377.11
4.3.100.0070.0277.11
4.3.90.1100.0137.11
4.3.80.1270.0307.11
4.3.70.1230.0107.11
4.3.60.1230.0137.11
4.3.50.1330.0207.11
4.3.40.1330.0277.11
4.3.30.0570.0137.11
4.3.20.0630.0207.11
4.3.10.0400.0177.11
4.3.00.0000.0137.11

preferences:
45.54 ms | 401 KiB | 5 Q