3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ [ 'a1' => true, 'b1' => 'abc', 'c1' => 'def' ], [ 'a2' => true, 'b2' => 'fgh', 'c2' => 'ijk', 'd2' => 'lmn', 'e2' => 'opq', ] ]; $iterator = new RecursiveIteratorIterator(new RecursiveArrayIterator($arr)); foreach($iterator as $key => $value) { var_dump($key . ': ' . $value); }

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.0090.00618.31
8.3.50.0090.00918.16
8.3.40.0190.00618.67
8.3.30.0120.00318.68
8.3.20.0050.00319.18
8.3.10.0080.00020.86
8.3.00.0040.00419.37
8.2.180.0090.00618.54
8.2.170.0070.00722.96
8.2.160.0000.01419.12
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0030.00326.16
8.2.120.0050.00319.36
8.2.110.0100.00021.00
8.2.100.0080.00417.86
8.2.90.0030.00918.99
8.2.80.0040.00418.09
8.2.70.0090.00017.50
8.2.60.0100.00017.50
8.2.50.0040.00417.93
8.2.40.0000.00819.36
8.2.30.0000.00819.55
8.2.20.0000.00717.98
8.2.10.0000.00718.10
8.2.00.0000.00719.50
8.1.280.0070.00725.92
8.1.270.0090.00622.19
8.1.260.0040.00426.35
8.1.250.0090.00028.09
8.1.240.0070.00321.20
8.1.230.0080.00817.83
8.1.220.0040.00417.76
8.1.210.0030.00618.77
8.1.200.0030.00617.35
8.1.190.0040.00419.00
8.1.180.0070.00418.10
8.1.170.0030.00617.62
8.1.160.0060.00320.73
8.1.150.0000.00718.80
8.1.140.0070.00017.61
8.1.130.0000.00717.38
8.1.120.0000.00717.51
8.1.110.0070.00317.44
8.1.100.0040.00417.39
8.1.90.0080.00417.46
8.1.80.0050.00517.37
8.1.70.0040.00417.35
8.1.60.0040.00417.47
8.1.50.0100.00017.43
8.1.40.0040.00417.56
8.1.30.0020.00517.56
8.1.20.0000.00717.65
8.1.10.0000.00717.58
8.1.00.0000.00817.41
8.0.300.0040.00418.77
8.0.290.0080.00016.75
8.0.280.0020.00418.48
8.0.270.0050.00317.31
8.0.260.0000.00616.88
8.0.250.0040.00416.85
8.0.240.0040.00416.87
8.0.230.0030.00316.93
8.0.220.0000.00816.86
8.0.210.0000.00716.96
8.0.200.0040.00416.82
8.0.190.0000.00816.92
8.0.180.0060.00316.90
8.0.170.0000.00816.95
8.0.160.0050.00216.89
8.0.150.0000.00816.79
8.0.140.0040.00416.88
8.0.130.0050.00013.40
8.0.120.0040.00416.86
8.0.110.0050.00216.71
8.0.100.0000.00716.70
8.0.90.0040.00416.80
8.0.80.0080.00916.92
8.0.70.0040.00417.00
8.0.60.0030.00516.90
8.0.50.0050.00316.78
8.0.30.0080.00917.17
8.0.20.0110.00917.40
8.0.10.0040.00416.93
8.0.00.0120.00516.70
7.4.330.0000.00515.55
7.4.320.0000.00616.50
7.4.300.0000.00616.51
7.4.290.0030.00316.56
7.4.280.0000.00716.41
7.4.270.0030.00316.38
7.4.260.0070.00016.58
7.4.250.0030.00316.61
7.4.240.0000.00716.60
7.4.230.0000.00716.58
7.4.220.0000.00916.70
7.4.210.0070.00716.61
7.4.200.0070.00016.46
7.4.160.0070.00916.45
7.4.140.0090.01117.86
7.4.130.0100.00716.41
7.4.120.0100.00916.46
7.4.110.0090.00816.41
7.4.100.0110.00516.28
7.4.90.0130.01016.38
7.4.80.0080.01219.39
7.4.70.0060.01116.41
7.4.60.0180.00616.55
7.4.50.0090.00616.41
7.4.40.0060.01016.45
7.4.00.0100.00714.90
7.3.330.0030.00313.19
7.3.320.0030.00313.00
7.3.310.0030.00316.27
7.3.300.0000.00716.11
7.3.290.0000.00716.22
7.3.280.0110.00316.27
7.3.260.0120.01016.53
7.3.240.0070.01016.49
7.3.230.0100.00816.48
7.3.210.0210.00316.49
7.3.200.0060.01016.35
7.3.190.0090.00916.47
7.3.180.0100.00716.55
7.3.170.0090.01316.53
7.3.160.0120.00916.30
7.3.120.0030.01415.13
7.3.110.0130.00514.57
7.3.100.0090.00614.66
7.3.90.0090.00615.11
7.3.80.0100.00714.77
7.3.70.0060.00314.91
7.3.60.0060.01014.71
7.3.50.0090.00914.82
7.3.40.0130.00014.73
7.3.30.0030.01314.53
7.3.20.0030.01216.81
7.3.10.0080.00416.55
7.3.00.0040.00716.73
7.2.330.0090.01516.75
7.2.320.0000.01816.78
7.2.310.0110.01116.56
7.2.300.0130.01316.42
7.2.290.0110.00816.67
7.2.250.0040.01514.96
7.2.240.0040.01514.89
7.2.230.0030.01415.00
7.2.220.0040.01115.32
7.2.210.0060.00815.27
7.2.200.0000.01214.98
7.2.190.0120.00615.23
7.2.180.0060.01014.91
7.2.170.0060.00614.83
7.2.130.0040.00717.04
7.2.120.0060.00616.73
7.2.110.0070.00716.93
7.2.100.0000.01016.75
7.2.90.0070.00416.69
7.2.80.0060.00616.92
7.2.70.0030.00716.96
7.2.60.0100.00715.64
7.2.50.0100.01115.97
7.2.40.0080.01016.29
7.2.30.0120.00616.21
7.2.20.0100.00616.15
7.2.10.0080.01116.25
7.2.00.1660.00816.02
7.1.330.0120.00315.80
7.1.320.0060.00315.61
7.1.310.0070.00715.76
7.1.300.0070.00715.82
7.1.290.0030.01015.60
7.1.280.0030.00715.80
7.1.270.0050.00315.72
7.1.260.0070.00415.79
7.1.250.0030.00915.81
7.1.200.0110.00415.77
7.1.170.0150.01013.55
7.1.160.0150.01216.83
7.1.150.0120.01416.66
7.1.140.0170.01116.53
7.1.130.3100.01016.51
7.1.120.0750.01316.64
7.1.110.2910.01016.12
7.1.100.3600.01516.23
7.1.90.0170.01115.98
7.1.80.0130.01216.06
7.1.70.0440.01015.45
7.1.60.0360.02333.38
7.1.50.1820.01732.67
7.1.40.0400.01532.39
7.1.30.0370.01532.78
7.1.20.3480.01632.68
7.1.10.0140.01314.54
7.1.00.0350.01214.84
5.4.420.0080.00312.68

preferences:
56.35 ms | 401 KiB | 5 Q