3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyIterator extends ArrayIterator { // Overwrite getHash() with just some (working) test-method public function getHash($object) { return get_class($object); } } class TestObject {} $list = new MyIterator(); $listCloned = clone $list;   $list->append(new TestObject()); $listCloned->append(new TestObject());

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)
5.4.310.0080.04312.52
5.4.300.0120.04012.53
5.4.290.0060.04312.52
5.4.280.0040.03712.41
5.4.270.0030.03912.41
5.4.260.0040.04612.41
5.4.250.0120.03612.42
5.4.240.0060.04412.42
5.4.230.0070.04112.41
5.4.220.0050.03812.41
5.4.210.0050.03812.41
5.4.200.0100.03712.41
5.4.190.0040.03712.40
5.4.180.0020.04712.40
5.4.170.0050.03612.41
5.4.160.0060.03812.41
5.4.150.0040.03912.41
5.4.140.0060.03712.09
5.4.130.0040.03912.07
5.4.120.0110.03112.04
5.4.110.0040.03712.04
5.4.100.0080.03312.04
5.4.90.0070.03612.04
5.4.80.0060.03812.04
5.4.70.0060.03512.04
5.4.60.0060.03512.04
5.4.50.0080.03512.04
5.4.40.0050.03612.02
5.4.30.0050.03712.02
5.4.20.0050.03712.02
5.4.10.0060.03512.02
5.4.00.0060.03611.51
5.3.280.0050.03912.71
5.3.270.0080.03912.73
5.3.260.0050.04512.72
5.3.250.0060.04112.71
5.3.240.0080.03612.72
5.3.230.0110.03412.71
5.3.220.0090.03512.68
5.3.210.0030.04712.68
5.3.200.0060.03712.68
5.3.190.0050.04112.67
5.3.180.0050.03912.68
5.3.170.0090.03412.67
5.3.160.0070.03512.67
5.3.150.0070.04012.67
5.3.140.0080.03712.66
5.3.130.0070.05012.66
5.3.120.0070.04012.66
5.3.110.0070.04512.66
5.3.100.0040.03812.13
5.3.90.0080.03412.11
5.3.80.0070.03912.10
5.3.70.0090.03912.11
5.3.60.0080.03412.09
5.3.50.0090.03612.04
5.3.40.0030.03812.04
5.3.30.0040.03711.99
5.3.20.0040.03811.77
5.3.10.0070.03311.74
5.3.00.0040.03811.73
5.2.170.0030.0359.23
5.2.160.0070.0359.23
5.2.150.0050.0419.23
5.2.140.0080.0309.23
5.2.130.0100.0279.19
5.2.120.0050.0309.18
5.2.110.0030.0319.19
5.2.100.0020.0319.19
5.2.90.0070.0269.18
5.2.80.0040.0319.18
5.2.70.0050.0369.18
5.2.60.0040.0329.13
5.2.50.0050.0309.10
5.2.40.0040.0299.08
5.2.30.0070.0329.05
5.2.20.0060.0309.05
5.2.10.0040.0298.95
5.2.00.0050.0288.81
5.1.60.0080.0278.10
5.1.50.0070.0288.10
5.1.40.0040.0268.07
5.1.30.0050.0328.43
5.1.20.0030.0328.45
5.1.10.0070.0268.17
5.1.00.0070.0268.18
5.0.50.0010.0226.64
5.0.40.0030.0216.51
5.0.30.0040.0316.32
5.0.20.0040.0196.28
5.0.10.0040.0256.27
5.0.00.0050.0296.26
4.4.90.0030.0204.78
4.4.80.0050.0234.75
4.4.70.0040.0154.76
4.4.60.0050.0164.76
4.4.50.0010.0204.77
4.4.40.0060.0254.71
4.4.30.0030.0204.76
4.4.20.0060.0214.84
4.4.10.0060.0194.84
4.4.00.0020.0264.76
4.3.110.0030.0154.67
4.3.100.0030.0174.67
4.3.90.0040.0134.64
4.3.80.0010.0264.58
4.3.70.0020.0154.63
4.3.60.0030.0144.63
4.3.50.0050.0164.63
4.3.40.0040.0234.54
4.3.30.0030.0163.30
4.3.20.0050.0133.28
4.3.10.0030.0153.23
4.3.00.0030.0207.82

preferences:
141.53 ms | 1394 KiB | 7 Q