3v4l.org

run code in 300+ PHP versions simultaneously
<?php $it = new RecursiveArrayIterator(array(1, 2, array(3, 4, array(5, 6, 7), 8), 9, 10)); $tit = new RecursiveTreeIterator($it); $tit->setPostfix('***'); var_dump($tit->getPostfix()); foreach( $tit as $key => $value ){ echo $value . PHP_EOL; }

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.0120.00318.18
8.3.50.0130.01018.20
8.3.40.0140.00318.75
8.3.30.0090.00618.59
8.3.20.0000.00721.65
8.3.10.0000.00823.48
8.3.00.0060.00323.48
8.2.180.0070.01116.37
8.2.170.0120.00322.96
8.2.160.0090.00620.14
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0020.00520.93
8.2.120.0070.00026.35
8.2.110.0000.01020.52
8.2.100.0130.00017.84
8.2.90.0000.00819.35
8.2.80.0030.00518.03
8.2.70.0000.00817.93
8.2.60.0030.00517.50
8.2.50.0000.00818.10
8.2.40.0060.00320.54
8.2.30.0070.00020.70
8.2.20.0000.00717.94
8.2.10.0000.00718.02
8.2.00.0060.00317.98
8.1.280.0090.00625.92
8.1.270.0080.00022.14
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0090.00023.97
8.1.230.0160.00020.66
8.1.220.0000.00917.79
8.1.210.0080.00018.77
8.1.200.0080.00017.35
8.1.190.0040.00417.10
8.1.180.0000.00818.10
8.1.170.0030.00518.59
8.1.160.0000.00818.84
8.1.150.0070.00020.23
8.1.140.0040.00417.74
8.1.130.0090.00019.01
8.1.120.0030.00617.45
8.1.110.0000.00717.45
8.1.100.0060.00317.47
8.1.90.0030.00617.48
8.1.80.0030.00517.48
8.1.70.0000.00817.52
8.1.60.0030.00617.61
8.1.50.0090.00017.44
8.1.40.0000.00717.39
8.1.30.0000.00817.64
8.1.20.0000.00817.64
8.1.10.0000.00717.59
8.1.00.0000.00817.42
8.0.300.0090.00019.88
8.0.290.0040.00416.63
8.0.280.0030.00318.43
8.0.270.0070.00017.30
8.0.260.0000.00716.77
8.0.250.0030.00317.01
8.0.240.0080.00216.84
8.0.230.0000.00717.00
8.0.220.0000.00716.94
8.0.210.0080.00016.76
8.0.200.0000.00616.94
8.0.190.0080.00016.98
8.0.180.0040.00416.88
8.0.170.0090.00016.77
8.0.160.0030.00616.93
8.0.150.0000.00716.78
8.0.140.0060.00316.88
8.0.130.0030.00313.24
8.0.120.0000.00816.84
8.0.110.0040.00416.89
8.0.100.0040.00317.00
8.0.90.0070.00016.88
8.0.80.0090.00616.82
8.0.70.0030.00716.76
8.0.60.0040.00416.66
8.0.50.0000.00716.91
8.0.30.0120.00717.06
8.0.20.0090.01117.40
8.0.10.0040.00416.99
8.0.00.0090.00916.69
7.4.330.0050.00015.55
7.4.320.0000.00716.56
7.4.300.0040.00416.51
7.4.290.0030.00316.59
7.4.280.0080.00016.61
7.4.270.0020.00516.49
7.4.260.0070.00016.57
7.4.250.0000.00716.55
7.4.240.0040.00416.61
7.4.230.0050.00316.40
7.4.220.0050.00216.60
7.4.210.0020.01316.49
7.4.200.0070.00016.25
7.4.160.0120.00616.58
7.4.140.0080.00917.86
7.4.130.0090.00916.46
7.4.120.0110.00816.48
7.4.110.0160.00416.51
7.4.100.0090.00916.50
7.4.90.0090.00916.41
7.4.80.0220.00319.39
7.4.70.0150.00616.51
7.4.60.0100.00716.36
7.4.50.0100.00316.59
7.4.40.0000.01716.39
7.4.00.0090.00614.89
7.3.330.0000.00512.96
7.3.320.0000.00613.12
7.3.310.0000.00716.12
7.3.300.0050.00316.27
7.3.290.0030.00316.18
7.3.280.0050.01216.24
7.3.260.0130.00816.37
7.3.250.0090.01116.36
7.3.240.0110.00616.45
7.3.230.0070.01016.34
7.3.210.0030.01316.34
7.3.200.0070.01016.31
7.3.190.0180.00416.50
7.3.180.0100.00716.24
7.3.170.0080.00816.32
7.3.160.0130.00516.33
7.3.10.0150.01116.73
7.3.00.0130.00616.43
7.2.330.0110.00616.45
7.2.320.0090.00916.66
7.2.310.0150.00916.60
7.2.300.0100.01316.67
7.2.290.0100.00616.80
7.2.130.0120.00816.54
7.2.120.0140.00616.65
7.2.110.0100.01616.53
7.2.100.0090.00616.45
7.2.90.0110.00616.70
7.2.80.0110.00616.46
7.2.70.0070.01016.91
7.2.60.0040.01016.69
7.2.50.0070.00716.88
7.2.40.0040.00716.53
7.2.30.0110.00917.09
7.2.20.0110.01017.15
7.2.10.0080.01017.25
7.2.00.0130.01017.13
7.1.250.0000.01615.43
7.1.200.0030.00915.78
7.1.150.0160.00916.41
7.1.140.0150.01116.51
7.1.130.0130.01216.57
7.1.120.0460.01416.83
7.1.110.0120.01116.07
7.1.100.0080.01115.74
7.1.90.0180.00716.04
7.1.80.0110.01116.12
7.1.70.0110.00915.28
7.1.60.0310.00933.15
7.1.50.0340.00832.82
7.1.40.0250.01332.47
7.1.30.0270.01632.68
7.1.20.0250.01432.66
7.1.10.0100.00914.65
7.1.00.0110.00714.88

preferences:
61.17 ms | 400 KiB | 5 Q