3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array('a'=>1, 'b'=>2); $b = true; while((list(, $value) = each($a)) && $b) { var_dump($value); $b = false; }

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.0240.01098.97
7.3.0rc30.0220.00016.57
7.3.0beta10.0090.00012.56
7.3.0alpha10.0080.00012.80
7.2.60.0070.00716.75
7.2.00.0030.00919.29
7.1.200.0030.00615.61
7.1.100.0460.00715.94
7.1.70.0040.00717.10
7.1.60.0060.01819.30
7.1.50.0080.00316.91
7.1.00.0070.05722.36
7.0.200.0050.00216.70
7.0.140.0000.07722.09
7.0.120.0000.07722.17
7.0.60.0070.07020.07
7.0.50.0070.04017.85
7.0.40.0030.09020.00
7.0.30.0430.06320.16
7.0.20.0400.07020.20
7.0.10.0100.06720.09
7.0.00.0030.07020.01
5.6.280.0000.07720.86
5.6.210.0170.07020.54
5.6.200.0100.08318.11
5.6.190.0130.06020.27
5.6.180.0370.04320.61
5.6.170.0230.07020.37
5.6.160.0100.07320.48
5.6.150.0130.06718.21
5.6.140.0100.08318.07
5.6.130.0130.08018.20
5.6.120.0130.07720.86
5.6.110.0130.06020.98
5.6.100.0070.04020.97
5.6.90.0030.05020.99
5.6.80.0100.08020.47
5.5.350.0270.02320.37
5.5.340.0070.04717.98
5.5.330.0030.04720.19
5.5.320.0470.05020.29
5.5.310.0230.08020.21
5.5.300.0070.07717.98
5.5.290.0100.07717.89
5.5.280.0170.07320.95
5.5.270.0130.03720.74
5.5.260.0000.04320.86
5.5.250.0130.04020.57
5.5.240.0300.07020.25
5.4.450.0030.08319.50
5.4.440.0100.08019.32
5.4.430.0070.04319.40
5.4.420.0130.03719.41
5.4.410.0030.08319.28
5.4.400.0100.04718.92
5.4.390.0070.05018.92
5.4.380.0030.03719.09
5.4.370.0070.03318.92
5.4.360.0070.07318.91
5.4.350.0130.07319.17
5.4.340.0100.03318.80
5.4.320.0030.04719.18
5.4.310.0130.06319.13
5.4.300.0100.07719.17
5.4.290.0070.05318.78
5.4.280.0100.03719.00
5.4.270.0100.03319.14
5.4.260.0030.04318.91
5.4.250.0030.04718.78
5.4.240.0030.04719.07
5.4.230.0000.05018.77
5.4.220.0100.06719.07
5.4.210.0030.08019.14
5.4.200.0070.03719.17
5.4.190.0100.03019.11
5.4.180.0100.03719.14
5.4.170.0170.02719.18
5.4.160.0100.05318.91
5.4.150.0030.04319.11
5.4.140.0100.07016.25
5.4.130.0030.04316.32
5.4.120.0070.05316.43
5.4.110.0070.04716.61
5.4.100.0030.07016.32
5.4.90.0000.05016.25
5.4.80.0170.06016.44
5.4.70.0030.06316.22
5.4.60.0070.07716.38
5.4.50.0170.02716.14
5.4.40.0070.03316.33
5.4.30.0030.04316.29
5.4.20.0000.04316.31
5.4.10.0070.04316.26
5.4.00.0130.07015.64
5.3.290.0130.06014.64
5.3.280.0100.07014.52
5.3.270.0030.04014.56
5.3.260.0000.04314.62
5.3.250.0170.05714.42
5.3.240.0000.06714.53
5.3.230.0030.07314.40
5.3.220.0000.04714.46
5.3.210.0070.07714.35
5.3.200.0130.04314.51
5.3.190.0070.08014.36
5.3.180.0070.04714.45
5.3.170.0030.04014.52
5.3.160.0070.07314.54
5.3.150.0070.07314.48
5.3.140.0170.05714.64
5.3.130.0030.03714.51
5.3.120.0170.03714.36
5.3.110.0070.03314.49
5.3.100.0000.04013.96
5.3.90.0000.07013.95
5.3.80.0070.03313.94
5.3.70.0070.04013.85
5.3.60.0070.04014.09
5.3.50.0070.07313.77
5.3.40.0100.04713.76
5.3.30.0030.05713.73
5.3.20.0070.06013.53
5.3.10.0030.03713.63
5.3.00.0000.07713.73
5.2.170.0030.06311.15
5.2.160.0070.06010.97
5.2.150.0100.04711.03
5.2.140.0070.06311.22
5.2.130.0000.03311.09
5.2.120.0030.03011.00
5.2.110.0000.05711.10
5.2.100.0070.06011.04
5.2.90.0070.06310.98
5.2.80.0000.04010.95
5.2.70.0070.06011.02
5.2.60.0070.05010.99
5.2.50.0100.05710.96
5.2.40.0070.02710.88
5.2.30.0170.05310.90
5.2.20.0070.05010.80
5.2.10.0000.06310.88
5.2.00.0030.03010.56
5.1.60.0030.04710.01
5.1.50.0000.03010.14
5.1.40.0030.0409.96
5.1.30.0100.02310.34
5.1.20.0070.04710.23
5.1.10.0100.03310.02
5.1.00.0070.03310.08
5.0.50.0000.0279.68
5.0.40.0000.0209.68
5.0.30.0030.0409.68
5.0.20.0030.0379.68
5.0.10.0100.0409.68
5.0.00.0030.0439.68
4.4.90.0000.0239.68
4.4.80.0030.0339.68
4.4.70.0000.0339.68
4.4.60.0070.0139.68
4.4.50.0000.0209.68
4.4.40.0000.0279.68
4.4.30.0100.0179.68
4.4.20.0000.0339.68
4.4.10.0000.0209.68
4.4.00.0000.0279.68
4.3.110.0070.0179.68
4.3.100.0030.0279.68
4.3.90.0030.0239.68
4.3.80.0000.0539.68
4.3.70.0000.0239.68
4.3.60.0000.0309.68
4.3.50.0000.0279.68
4.3.40.0030.0439.68
4.3.30.0000.0309.68
4.3.20.0100.0109.68
4.3.10.0030.0179.68
4.3.00.0030.0139.68