3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ll = new SplDoublyLinkedList(); $ll->push('one'); $ll->push('two'); $ll->push('three'); $ll->push('four'); $ll->rewind(); $iterations_done = iterator_apply($ll, function(Iterator $it) { echo $it->key(),"\t->", $it->current(),"\t->", ucfirst($it->current()),".\n"; $it->next(); return true; }, array($ll)); echo "Did iterate {$iterations_done} times \n";

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.01318.27
8.3.50.0110.00418.07
8.3.40.0100.01018.79
8.3.30.0180.00018.66
8.3.20.0080.00018.99
8.3.10.0030.00523.55
8.3.00.0040.00422.23
8.2.180.0110.00718.29
8.2.170.0110.00322.96
8.2.160.0100.00321.02
8.2.150.0000.00824.18
8.2.140.0030.00624.66
8.2.130.0080.00026.16
8.2.120.0060.00319.89
8.2.110.0060.00320.32
8.2.100.0070.00417.84
8.2.90.0000.00818.03
8.2.80.0040.00418.98
8.2.70.0000.00817.63
8.2.60.0080.00017.50
8.2.50.0040.00417.93
8.2.40.0000.00817.93
8.2.30.0000.00720.63
8.2.20.0040.00417.96
8.2.10.0000.00717.95
8.2.00.0050.00219.47
8.1.280.0070.00725.92
8.1.270.0000.00822.14
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0070.00423.86
8.1.230.0060.00624.03
8.1.220.0000.00817.74
8.1.210.0000.00918.77
8.1.200.0000.00817.35
8.1.190.0000.00817.35
8.1.180.0030.00518.10
8.1.170.0040.00417.62
8.1.160.0000.00718.89
8.1.150.0000.00718.84
8.1.140.0060.00319.00
8.1.130.0030.00519.05
8.1.120.0000.00717.49
8.1.110.0000.00717.48
8.1.100.0040.00417.39
8.1.90.0040.00417.48
8.1.80.0030.00617.36
8.1.70.0040.00417.50
8.1.60.0040.00417.50
8.1.50.0000.00717.52
8.1.40.0000.00817.56
8.1.30.0050.00317.60
8.1.20.0040.00417.66
8.1.10.0040.00417.42
8.1.00.0050.00317.41
8.0.300.0000.00920.04
8.0.290.0040.00416.88
8.0.280.0000.00718.43
8.0.270.0040.00417.22
8.0.260.0030.00318.98
8.0.250.0050.00517.02
8.0.240.0000.00916.92
8.0.230.0030.00317.01
8.0.220.0060.00316.94
8.0.210.0050.00216.86
8.0.200.0000.00716.92
8.0.190.0040.00417.00
8.0.180.0050.00316.86
8.0.170.0000.00817.00
8.0.160.0000.00817.00
8.0.150.0050.00316.88
8.0.140.0000.00816.91
8.0.130.0030.00313.35
8.0.120.0000.00716.96
8.0.110.0070.00016.94
8.0.100.0040.00416.87
8.0.90.0060.00316.87
8.0.80.0090.01316.89
8.0.70.0000.00816.80
8.0.60.0070.00017.07
8.0.50.0000.00717.00
8.0.30.0060.01317.20
8.0.20.0120.00617.40
8.0.10.0040.00416.91
8.0.00.0080.01016.83
7.4.330.0040.00215.55
7.4.320.0000.00616.47
7.4.300.0080.00016.62
7.4.290.0030.00316.43
7.4.280.0050.00516.56
7.4.270.0040.00416.53
7.4.260.0030.00616.50
7.4.250.0040.00416.58
7.4.240.0070.00016.46
7.4.230.0000.00816.70
7.4.220.0090.00016.64
7.4.210.0060.00816.61
7.4.200.0040.00416.64
7.4.160.0080.00816.52
7.4.140.0100.00717.86
7.4.130.0170.00316.50
7.4.120.0080.01116.55
7.4.110.0110.00516.50
7.4.100.0100.00916.55
7.4.90.0100.00616.57
7.4.80.0080.00819.39
7.4.70.0110.00616.41
7.4.60.0120.00316.45
7.4.50.0000.01316.25
7.4.40.0120.00616.64
7.4.00.0120.00615.03
7.3.330.0050.00013.24
7.3.320.0040.00413.13
7.3.310.0030.00316.17
7.3.300.0060.00016.34
7.3.290.0040.00416.42
7.3.280.0050.01016.36
7.3.260.0090.01116.49
7.3.240.0090.00916.41
7.3.230.0120.00416.59
7.3.210.0120.00616.33
7.3.200.0160.00616.42
7.3.190.0070.01016.32
7.3.180.0100.00616.42
7.3.170.0110.01116.36
7.3.160.0090.00916.27
7.2.330.0140.01316.75
7.2.320.0100.00916.82
7.2.310.0110.01116.48
7.2.300.0100.00716.64
7.2.290.0130.00316.49
7.2.90.0370.00614.51
7.2.80.0310.01014.46
7.2.70.0350.00715.00
7.2.60.0330.00715.05
7.2.50.0370.00314.63
7.2.40.0330.01014.86
7.2.30.1530.00314.55
7.2.20.0350.01014.82
7.2.10.0410.00714.77
7.2.00.0600.00715.03
7.1.210.0460.00014.00
7.1.200.0310.01014.10
7.1.190.0300.00713.95
7.1.180.0360.00313.84
7.1.170.0350.00013.72
7.1.160.0330.00313.90
7.1.150.0320.00913.68
7.1.140.0460.01113.83
7.1.130.0340.01013.66
7.1.120.0600.00613.40
7.1.110.0770.01013.85
7.1.100.0660.00013.86
7.1.90.0490.01013.86
7.1.80.0610.00313.73
7.1.70.0860.00013.58
7.1.60.0800.01331.76
7.1.50.0660.01331.42
7.1.40.0510.00331.82
7.1.30.0520.00731.74
7.1.20.0740.00631.57
7.1.10.0400.00013.93
7.1.00.0440.00613.73

preferences:
62.83 ms | 401 KiB | 5 Q