3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = new ArrayIterator(range(5,10)); $arr->seek(1); // expected: two, output: two echo $arr->current();
based on 8MWM6

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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.3.10.0090.00016.54
7.3.00.0070.00716.36
7.2.130.0000.01416.61
7.2.120.0060.00916.65
7.2.110.0100.00716.36
7.2.100.0060.00916.81
7.2.90.0040.01216.79
7.2.80.0060.00916.49
7.2.70.0070.00716.90
7.2.60.0090.00416.66
7.2.50.0060.00616.61
7.2.40.0030.01016.98
7.2.30.0040.01417.04
7.2.20.0000.01016.96
7.2.10.0030.01016.78
7.2.00.0050.01118.15
7.1.250.0060.00315.49
7.1.200.0040.00815.68
7.1.100.0000.01117.87
7.1.70.0000.00817.04
7.1.60.0110.01119.48
7.1.50.0100.01716.79
7.1.00.0000.07722.40
7.0.200.0020.00516.82
7.0.60.0070.08320.07
7.0.50.0130.04717.88
7.0.40.0130.03720.04
7.0.30.0270.05020.18
7.0.20.0230.06320.30
7.0.10.0100.06720.04
7.0.00.0030.04019.99
5.6.280.0000.07721.07
5.6.210.0130.07320.46
5.6.200.0100.07018.12
5.6.190.0030.08320.60
5.6.180.0300.04320.43
5.6.170.0170.06720.54
5.6.160.0100.08320.52
5.6.150.0070.08018.22
5.6.140.0070.07018.22
5.6.130.0000.06318.11
5.6.120.0130.07720.98
5.6.110.0070.08720.88
5.6.100.0030.09021.11
5.6.90.0030.05320.97
5.6.80.0070.05320.43
5.5.350.0030.07720.40
5.5.340.0100.08017.98
5.5.330.0070.08020.25
5.5.320.0070.08020.22
5.5.310.0230.05320.30
5.5.300.0070.08317.98
5.5.290.0100.07717.96
5.5.280.0030.04320.78
5.5.270.0070.06320.82
5.5.260.0030.06320.97
5.5.250.0000.04320.54
5.5.240.0030.08020.28
5.4.450.1200.03319.57
5.4.440.0870.06719.22
5.4.430.0970.05319.50
5.4.420.0070.06719.62
5.4.410.0200.06019.21
5.4.400.0200.04719.33
5.4.390.0130.06719.17
5.4.380.0130.06018.96
5.4.370.0100.05019.08
5.4.360.0100.07319.18
5.4.350.0130.06319.16
5.4.340.0130.05319.09
5.4.320.0070.07718.97
5.4.310.0030.05718.96
5.4.300.0070.05319.05
5.4.290.0200.04319.16
5.4.280.0170.04319.06
5.4.270.0130.05019.12
5.4.260.0100.05319.14
5.4.250.0070.06018.96
5.4.240.0070.05719.04
5.4.230.0130.05019.04
5.4.220.0130.05018.98
5.4.210.0200.04318.90
5.4.200.0200.04016.52
5.4.190.0030.06319.13
5.4.180.0100.05719.14
5.4.170.0100.05319.05
5.4.160.0170.06319.23
5.4.150.0030.06019.15
5.4.140.0130.05016.35
5.4.130.0230.03716.51
5.4.120.0070.05316.42
5.4.110.0100.04716.59
5.4.100.0130.04716.34
5.4.90.0070.05316.52
5.4.80.0170.04716.20
5.4.70.0070.05316.38
5.4.60.0030.07016.38
5.4.50.0270.05316.20
5.4.40.0070.05316.36
5.4.30.0230.03316.38
5.4.20.0100.05016.20
5.4.10.0100.04716.50
5.4.00.0030.05315.63
5.3.290.0130.05314.55
5.3.280.0070.05314.57
5.3.270.0030.06014.54
5.3.260.0100.05314.62
5.3.250.0070.05314.46
5.3.240.0100.05014.53
5.3.230.0100.05314.44
5.3.220.0130.04714.41
5.3.210.0070.05714.42
5.3.200.0070.05314.48
5.3.190.0130.04714.48
5.3.180.0070.05314.58
5.3.170.0100.05014.40
5.3.160.0130.04714.40
5.3.150.0070.05314.56
5.3.140.0130.04714.50
5.3.130.0100.05314.58
5.3.120.0030.05714.53
5.3.110.0130.04714.38
5.3.100.0200.04013.97
5.3.90.0070.05314.02
5.3.80.0030.05713.85
5.3.70.0030.05714.06
5.3.60.0130.05013.98
5.3.50.0030.05313.82
5.3.40.0130.04713.98
5.3.30.0130.04713.74
5.3.20.0100.04713.54
5.3.10.0130.04313.49
5.3.00.0030.05313.49
5.2.170.0100.04010.99
5.2.160.0130.03711.24
5.2.150.0100.04011.06
5.2.140.0000.04710.98
5.2.130.0070.04310.89
5.2.120.0070.04010.94
5.2.110.0130.03710.89
5.2.100.0070.05311.04
5.2.90.0000.04710.94
5.2.80.0170.04711.03
5.2.70.0130.06010.95
5.2.60.0030.04711.04
5.2.50.0100.04010.88
5.2.40.0130.03310.90
5.2.30.0070.04310.98
5.2.20.0130.04010.91
5.2.10.0030.04010.77
5.2.00.0170.03010.69
5.1.60.0000.03710.14
5.1.50.0070.0339.91
5.1.40.0030.0379.89
5.1.30.0130.03310.32
5.1.20.0200.05010.26
5.1.10.0030.0509.92
5.1.00.0130.04010.05
5.0.50.0000.0338.48
5.0.40.0000.0308.32
5.0.30.0030.0438.15
5.0.20.0030.0308.12
5.0.10.0030.0308.08
5.0.00.0030.0438.08
4.4.90.0000.0235.82
4.4.80.0000.0235.84
4.4.70.0000.0235.82
4.4.60.0030.0235.82
4.4.50.0000.0335.84
4.4.40.0100.0305.81
4.4.30.0000.0235.79
4.4.20.0070.0275.80
4.4.10.0000.0235.90
4.4.00.0030.0435.87
4.3.110.0030.0275.71
4.3.100.0070.0235.79
4.3.90.0000.0235.78
4.3.80.0030.0335.76
4.3.70.0030.0205.65
4.3.60.0000.0235.75
4.3.50.0000.0235.72
4.3.40.0030.0335.72
4.3.30.0000.0234.46
4.3.20.0000.0234.48
4.3.10.0030.0204.34
4.3.00.0130.01315.68