3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = array_fill(0, 10000, "some text value"); while ( list($key, $value) = each($array) ) $array[$key];
based on ZgJYP

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.0rc40.0100.01098.97
7.3.0rc30.0120.00916.35
7.3.0beta10.0030.01012.46
7.3.0alpha10.0120.00312.61
7.2.60.0070.00716.76
7.2.00.0070.00719.31
7.1.200.0110.00315.85
7.1.100.0000.01418.15
7.1.70.0000.01517.02
7.1.60.0070.02119.32
7.1.50.0090.01816.85
7.1.00.0000.08022.35
7.0.200.0030.01016.73
7.0.140.0000.08022.11
7.0.60.0070.08020.05
7.0.50.0100.08318.21
7.0.40.0030.04719.96
7.0.30.0100.05020.22
7.0.20.0130.05320.18
7.0.10.0070.08020.00
7.0.00.0070.04319.99
5.6.280.0070.07721.69
5.6.210.0070.08721.47
5.6.200.0070.08018.89
5.6.190.0130.04321.22
5.6.180.0500.06320.93
5.6.170.0300.04721.03
5.6.160.0100.09021.16
5.6.150.0100.08018.85
5.6.140.0000.06018.84
5.6.130.0030.07318.89
5.6.120.0100.05021.86
5.6.110.0100.09021.87
5.6.100.0030.04721.78
5.6.90.0000.04721.88
5.6.80.0070.04321.05
5.5.350.0230.08321.07
5.5.340.0100.06718.76
5.5.330.0130.08320.88
5.5.320.0370.05720.98
5.5.310.0270.06320.95
5.5.300.0030.08018.68
5.5.290.0170.07718.72
5.5.280.0070.05721.56
5.5.270.0130.08721.65
5.5.260.0100.09021.59
5.5.250.0070.07321.34
5.5.240.0230.08021.03
5.4.450.0200.05020.09
5.4.440.0470.05720.15
5.4.430.0200.04020.14
5.4.420.0700.00020.17
5.4.410.0670.00019.75
5.4.400.0670.00020.01
5.4.390.0670.00019.73
5.4.380.0700.00019.85
5.4.370.0670.00019.76
5.4.360.0670.00019.79
5.4.350.0700.00019.88
5.4.340.0670.00019.70
5.4.320.0070.04313.22
5.4.310.0070.04013.22
5.4.300.0080.04013.22
5.4.290.0070.04213.22
5.4.280.0070.03913.11
5.4.270.0130.03813.12
5.4.260.0090.04113.11
5.4.250.0100.03913.12
5.4.240.0090.04113.12
5.4.230.0110.03813.11
5.4.220.0120.03413.11
5.4.210.0070.03913.11
5.4.200.0090.03913.11
5.4.190.0050.04113.11
5.4.180.0070.03913.10
5.4.170.0030.04413.12
5.4.160.0050.04513.11
5.4.150.0040.04213.11
5.4.140.0070.04012.79
5.4.130.0060.04012.78
5.4.120.0060.04012.73
5.4.110.0050.04012.73
5.4.100.0070.03812.73
5.4.90.0080.04412.94
5.4.80.0070.04712.94
5.4.70.0090.04312.93
5.4.60.0060.04312.94
5.4.50.0090.04412.94
5.4.40.0080.04212.92
5.4.30.0070.03812.92
5.4.20.0060.04212.92
5.4.10.0040.04012.92
5.4.00.0050.04912.42
5.3.290.0070.04413.62
5.3.280.0080.04013.54
5.3.270.0110.03813.56
5.3.260.0060.04313.56
5.3.250.0090.03913.55
5.3.240.0090.04313.56
5.3.230.0080.04913.55
5.3.220.0050.04713.52
5.3.210.0070.05113.52
5.3.200.0050.04213.52
5.3.190.0020.04513.52
5.3.180.0070.03913.52
5.3.170.0100.03713.52
5.3.160.0060.04013.51
5.3.150.0070.04013.52
5.3.140.0040.04313.50
5.3.130.0120.03813.50
5.3.120.0050.04413.50
5.3.110.0100.04313.50
5.3.100.0100.03812.99
5.3.90.0050.04212.97
5.3.80.0050.04212.96
5.3.70.0060.04112.96
5.3.60.0030.04312.95
5.3.50.0050.04112.89
5.3.40.0080.03812.89
5.3.30.0050.04812.86
5.3.20.0070.03712.63
5.3.10.0080.04112.60
5.3.00.0060.04112.59
5.2.170.0050.03810.09
5.2.160.0040.03410.09
5.2.150.0050.03410.09
5.2.140.0060.04110.15
5.2.130.0050.03310.04
5.2.120.0050.03410.10
5.2.110.0030.03510.05
5.2.100.0060.03210.05
5.2.90.0060.03310.05
5.2.80.0040.03510.04
5.2.70.0060.03510.04
5.2.60.0030.0369.99
5.2.50.0080.0329.96
5.2.40.0040.0349.93
5.2.30.0050.0359.71
5.2.20.0040.0369.71
5.2.10.0050.0339.63
5.2.00.0040.0349.49
5.1.60.0040.0289.12
5.1.50.0050.0329.12
5.1.40.0040.0289.10
5.1.30.0060.0299.45
5.1.20.0070.0319.47
5.1.10.0050.0399.20
5.1.00.0030.0319.20
5.0.50.0070.0247.68
5.0.40.0040.0307.53
5.0.30.0060.0357.34
5.0.20.0050.0247.32
5.0.10.0040.0267.30
5.0.00.0020.0387.29
4.4.90.0020.0235.69
4.4.80.0030.0215.67
4.4.70.0020.0235.66
4.4.60.0030.0215.67
4.4.50.0040.0205.68
4.4.40.0050.0305.68
4.4.30.0020.0235.67
4.4.20.0030.0225.73
4.4.10.0020.0235.73
4.4.00.0020.0325.70
4.3.110.0050.0205.61
4.3.100.0070.0175.59
4.3.90.0000.0245.58
4.3.80.0020.0315.58
4.3.70.0040.0195.57
4.3.60.0020.0225.58
4.3.50.0030.0215.57
4.3.40.0040.0295.54
4.3.30.0010.0234.34
4.3.20.0020.0234.32
4.3.10.0010.0234.27
4.3.00.0030.02713.34