3v4l.org

run code in 300+ PHP versions simultaneously
<?php eval('$rawarray = ' . "array('a', 'b', array(array('c'), 'd'), 'e', array('f'), 'g');"); $return = array(); $iterator = new RecursiveIteratorIterator(new RecursiveArrayIterator($rawarray)); foreach ($iterator as $value) { $return[] = $value; } print_r($return);

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.63
8.3.50.0130.00722.00
8.3.40.0120.00918.89
8.3.30.0110.00419.21
8.3.20.0080.00020.00
8.3.10.0130.00023.48
8.3.00.0060.00319.26
8.2.180.0120.00916.63
8.2.170.0120.00922.96
8.2.160.0090.00620.27
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0130.00626.16
8.2.120.0090.00022.13
8.2.110.0030.00620.33
8.2.100.0090.00317.91
8.2.90.0040.00419.26
8.2.80.0040.00417.97
8.2.70.0060.00317.63
8.2.60.0040.00817.93
8.2.50.0000.00818.07
8.2.40.0030.00619.88
8.2.30.0040.00419.79
8.2.20.0000.00717.64
8.2.10.0040.00419.97
8.2.00.0090.00317.82
8.1.280.0120.00625.92
8.1.270.0190.00022.14
8.1.260.0000.00826.35
8.1.250.0060.00328.09
8.1.240.0040.00423.93
8.1.230.0000.01217.52
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0040.00417.22
8.1.190.0080.00017.23
8.1.180.0030.00618.95
8.1.170.0090.00018.56
8.1.160.0100.00022.00
8.1.150.0040.00418.70
8.1.140.0000.00717.35
8.1.130.0070.00017.80
8.1.120.0030.00317.49
8.1.110.0040.00417.51
8.1.100.0040.00417.39
8.1.90.0000.00917.51
8.1.80.0030.00317.37
8.1.70.0040.00417.36
8.1.60.0040.00417.48
8.1.50.0030.00517.42
8.1.40.0000.00717.57
8.1.30.0030.00517.61
8.1.20.0000.00817.67
8.1.10.0000.00717.49
8.1.00.0080.00017.37
8.0.300.0040.00418.77
8.0.290.0030.00516.63
8.0.280.0050.00218.47
8.0.270.0070.00017.28
8.0.260.0030.00317.29
8.0.250.0070.00016.98
8.0.240.0070.00016.97
8.0.230.0060.00316.99
8.0.220.0030.00316.98
8.0.210.0000.00716.96
8.0.200.0070.00017.04
8.0.190.0040.00416.85
8.0.180.0000.00816.95
8.0.170.0000.00716.96
8.0.160.0000.00816.80
8.0.150.0040.00316.79
8.0.140.0060.00316.94
8.0.130.0050.00013.32
8.0.120.0040.00416.79
8.0.110.0000.00816.82
8.0.100.0000.00716.77
8.0.90.0040.00416.91
8.0.80.0000.01816.82
8.0.70.0040.00416.79
8.0.60.0000.00816.86
8.0.50.0000.00716.94
8.0.30.0110.00717.01
8.0.20.0150.00417.40
8.0.10.0050.00316.91
8.0.00.0130.00716.68
7.4.330.0020.00215.00
7.4.320.0060.00016.54
7.4.300.0000.00616.61
7.4.290.0000.00816.53
7.4.280.0090.00016.44
7.4.270.0070.00016.54
7.4.260.0000.00716.55
7.4.250.0070.00016.44
7.4.240.0020.00516.53
7.4.230.0030.00316.72
7.4.220.0120.00616.65
7.4.210.0020.01216.62
7.4.200.0040.00416.46
7.4.190.0050.00216.63
7.4.160.0060.00916.28
7.4.150.0100.00717.40
7.4.140.0110.00617.86
7.4.130.0130.00316.55
7.4.120.0090.00816.55
7.4.110.0090.00916.73
7.4.100.0100.01016.46
7.4.90.0080.00816.44
7.4.80.0120.01219.39
7.4.70.0060.01016.55
7.4.60.0090.00616.56
7.4.50.0040.00016.24
7.4.40.0070.00422.77
7.4.30.0110.00516.63
7.4.00.0040.01114.87
7.3.330.0000.00513.19
7.3.320.0000.00613.23
7.3.310.0040.00416.24
7.3.300.0070.00016.29
7.3.290.0080.00616.32
7.3.280.0100.01016.23
7.3.270.0110.00717.40
7.3.260.0140.00616.54
7.3.250.0110.00616.34
7.3.240.0090.00616.39
7.3.230.0100.00716.39
7.3.210.0030.01316.16
7.3.200.0100.01019.39
7.3.190.0100.00716.63
7.3.180.0030.01216.19
7.3.170.0060.00916.27
7.3.160.0080.01416.27
7.3.120.0070.00714.65
7.2.330.0070.01016.67
7.2.320.0150.00416.49
7.2.310.0110.00516.63
7.2.300.0120.01216.69
7.2.290.0060.01016.78
7.2.60.0040.01116.61
7.2.50.0350.00316.98
7.2.00.0030.01019.57
7.1.200.0120.00315.80
7.1.100.0070.01018.06
7.1.70.0000.01417.24
7.1.60.0060.01819.46
7.1.50.0100.01416.80
7.1.00.0100.07022.57
7.0.200.0040.00416.80
7.0.140.0030.07322.00
7.0.60.0100.03319.92
7.0.50.0030.07717.84
7.0.40.0100.08720.13
7.0.30.0270.05720.06
7.0.20.0200.04320.34
7.0.10.0000.07320.15
7.0.00.0130.08020.30
5.6.280.0070.07021.12
5.6.210.0070.08020.45
5.6.200.0200.04318.19
5.6.190.0100.05020.55
5.6.180.0030.05320.55
5.6.170.0230.08720.57
5.6.160.0000.05320.47
5.6.150.0070.05718.29
5.6.140.0000.04318.28
5.6.130.0030.08318.26
5.6.120.0100.03720.99
5.6.110.0030.06021.11
5.6.100.0070.08721.03
5.6.90.0100.08021.01
5.6.80.0070.08020.38
5.5.350.0200.08020.45
5.5.340.0100.07017.92
5.5.330.0030.05720.27
5.5.320.0230.04320.32
5.5.310.0200.04020.35
5.5.300.0100.07017.95
5.5.290.0030.08017.95
5.5.280.0130.07720.84
5.5.270.0030.05020.75
5.5.260.0100.07320.96
5.5.250.0100.08020.61
5.5.240.0230.07720.36
5.4.450.0730.07319.55
5.4.440.0800.05719.28
5.4.430.0900.06019.57
5.4.420.0470.04319.57
5.4.410.0700.05319.49
5.4.400.0770.06319.16
5.4.390.0630.06019.16
5.4.380.0300.05318.63
5.4.370.0230.05718.59
5.4.360.0230.05018.47
5.4.350.0300.05318.78
5.4.340.0370.05718.50
5.4.320.0070.04212.48
5.4.310.0090.03912.48
5.4.300.0100.03312.48
5.4.290.0110.04412.47
5.4.280.0160.05812.37
5.4.270.0100.06812.36
5.4.260.0090.05212.37
5.4.250.0160.07012.36
5.4.240.0100.06712.36
5.4.230.0110.07312.36
5.4.220.0050.06212.36
5.4.210.0050.09412.36
5.4.200.0110.06212.36
5.4.190.0100.04912.36
5.4.180.0100.05012.36
5.4.170.0100.05112.36
5.4.160.0130.05212.36
5.4.150.0070.04712.36
5.4.140.0120.04412.04
5.4.130.0090.04512.03
5.4.120.0100.04711.99
5.4.110.0110.06111.98
5.4.100.0080.04011.98
5.4.90.0090.03911.98
5.4.80.0070.04311.98
5.4.70.0100.07111.98
5.4.60.0090.04311.98
5.4.50.0090.03411.98
5.4.40.0050.03811.96
5.4.30.0070.03711.96
5.4.20.0040.03811.96
5.4.10.0090.04111.97
5.4.00.0150.08111.46
5.3.290.0090.03612.80
5.3.280.0140.09612.71
5.3.270.0180.07912.72
5.3.260.0140.08512.72
5.3.250.0100.08612.71
5.3.240.0120.08512.72
5.3.230.0150.06412.71
5.3.220.0090.05612.68
5.3.210.0100.05312.68
5.3.200.0080.05312.68
5.3.190.0070.04212.68
5.3.180.0100.05212.68
5.3.170.0130.04812.66
5.3.160.0110.03812.67
5.3.150.0050.04212.67
5.3.140.0070.04412.66
5.3.130.0120.06312.66
5.3.120.0070.04112.65
5.3.110.0100.03712.66
5.3.100.0100.03912.12
5.3.90.0130.04012.10
5.3.80.0090.04912.09
5.3.70.0110.04012.08
5.3.60.0130.05112.07
5.3.50.0090.04912.02
5.3.40.0040.04012.02
5.3.30.0070.03811.98
5.3.20.0090.03511.76
5.3.10.0100.03811.72
5.3.00.0090.04311.71
5.2.170.0040.0519.21
5.2.160.0060.0449.21
5.2.150.0040.0349.22
5.2.140.0080.0469.21
5.2.130.0050.0439.17
5.2.120.0020.0379.17
5.2.110.0050.0329.18
5.2.100.0070.0309.17
5.2.90.0050.0309.18
5.2.80.0080.0539.17
5.2.70.0080.0439.17
5.2.60.0080.0329.12
5.2.50.0080.0389.09
5.2.40.0110.0529.07
5.2.30.0030.0329.04
5.2.20.0060.0409.03
5.2.10.0030.0378.95
5.2.00.0060.0308.81
5.1.60.0040.0278.09
5.1.50.0040.0278.09
5.1.40.0060.0248.06
5.1.30.0060.0258.41
5.1.20.0070.0308.44
5.1.10.0060.0248.16
5.1.00.0020.0318.16
5.0.50.0090.0256.64
5.0.40.0050.0216.50
5.0.30.0050.0476.31
5.0.20.0040.0286.28
5.0.10.0050.0286.26
5.0.00.0030.0336.25
4.4.90.0020.0244.78
4.4.80.0030.0234.75
4.4.70.0040.0214.75
4.4.60.0030.0224.75
4.4.50.0050.0174.77
4.4.40.0020.0294.70
4.4.30.0020.0164.76
4.4.20.0040.0154.85
4.4.10.0030.0164.85
4.4.00.0050.0324.76
4.3.110.0020.0184.67
4.3.100.0020.0164.67
4.3.90.0040.0134.63
4.3.80.0050.0344.58
4.3.70.0050.0614.63
4.3.60.0040.0224.63
4.3.50.0020.0254.63
4.3.40.0050.0324.54
4.3.30.0020.0173.30
4.3.20.0030.0233.28
4.3.10.0030.0203.24
4.3.00.0300.01010.54

preferences:
53.67 ms | 401 KiB | 5 Q