3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php foreach(range(1,8) as $z) { echo $z." - ".base_convert($z,10,3)."\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).
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.2.00.0080.00419.50
7.1.200.0030.00615.80
7.1.100.0040.00717.88
7.1.70.0030.01016.86
7.1.60.0140.01119.22
7.1.50.0030.00816.84
7.1.00.0000.08022.36
7.0.200.0030.00316.86
7.0.140.0100.06722.21
7.0.60.0070.07720.01
7.0.50.0030.06317.85
7.0.40.0070.06020.39
7.0.30.0470.06720.02
7.0.20.0100.05320.19
7.0.10.0030.04320.17
7.0.00.0100.04320.16
5.6.280.0130.06321.06
5.6.210.0100.07720.60
5.6.200.0030.04318.13
5.6.190.0030.08720.35
5.6.180.0200.04020.43
5.6.170.0200.05020.38
5.6.160.0170.07020.37
5.6.150.0070.05318.12
5.6.140.0070.06718.07
5.6.130.0030.07718.11
5.6.120.0100.08320.96
5.6.110.0030.05020.98
5.6.100.0170.05020.88
5.6.90.0070.08320.94
5.6.80.0030.08020.50
5.5.350.0170.08720.40
5.5.340.0070.07317.94
5.5.330.0100.07320.37
5.5.320.0270.08020.43
5.5.310.0300.05020.32
5.5.300.0030.04017.97
5.5.290.0070.06317.96
5.5.280.0070.03720.86
5.5.270.0100.08020.88
5.5.260.0130.07320.96
5.5.250.0030.08720.46
5.5.240.0000.08020.15
5.4.450.0670.07719.48
5.4.440.0100.05719.64
5.4.430.0200.05019.16
5.4.420.0170.05319.25
5.4.410.0270.04319.32
5.4.400.0230.04318.93
5.4.390.0170.05319.19
5.4.380.0200.05018.70
5.4.370.0200.07018.61
5.4.360.0200.07018.68
5.4.350.0200.05718.57
5.4.340.0170.06018.65
5.4.320.0230.05318.62
5.4.310.0130.05718.49
5.4.300.0170.05318.70
5.4.290.0230.04718.49
5.4.280.0130.05718.52
5.4.270.0170.05718.65
5.4.260.0200.05318.71
5.4.250.0300.05318.52
5.4.240.0230.06318.71
5.4.230.0130.07018.73
5.4.220.0270.05018.51
5.4.210.0170.05718.71
5.4.200.0200.04716.43
5.4.190.0200.05318.59
5.4.180.0200.05018.72
5.4.170.0130.05718.57
5.4.160.0170.05318.54
5.4.150.0100.05718.71
5.4.140.0170.05316.21
5.4.130.0070.05716.13
5.4.120.0100.05316.13
5.4.110.0170.05016.24
5.4.100.0170.05016.06
5.4.90.0130.06016.06
5.4.80.0200.06016.02
5.4.70.0100.05716.13
5.4.60.0200.05016.27
5.4.50.0230.05716.19
5.4.40.0200.05316.16
5.4.30.0170.06716.28
5.4.20.0230.05316.05
5.4.10.0130.05316.31
5.4.00.0130.05015.63
5.3.290.0230.04714.63
5.3.280.0130.05714.59
5.3.270.0170.05314.55
5.3.260.0200.05314.53
5.3.250.0200.05714.60
5.3.240.0100.08014.70
5.3.230.0270.05014.57
5.3.220.0170.05014.54
5.3.210.0270.06314.66
5.3.200.0200.06714.46
5.3.190.0200.06714.62
5.3.180.0130.07314.55
5.3.170.0170.04714.65
5.3.160.0270.04014.48
5.3.150.0130.05714.48
5.3.140.0230.04714.64
5.3.130.0130.05714.49
5.3.120.0170.07314.44
5.3.110.0200.05714.50
5.3.100.0200.05314.13
5.3.90.0200.05713.99
5.3.80.0170.06013.98
5.3.70.0200.07013.99
5.3.60.0230.04713.94
5.3.50.0230.04313.91
5.3.40.0200.05713.89
5.3.30.0230.04313.88
5.3.20.0200.04713.59
5.3.10.0170.05313.57
5.3.00.0100.05713.63
5.2.170.0200.04711.30
5.2.160.0300.04011.09
5.2.150.0130.04711.09
5.2.140.0130.05011.14
5.2.130.0100.04311.25
5.2.120.0100.04711.08
5.2.110.0130.04011.11
5.2.100.0200.03711.05
5.2.90.0170.04011.07
5.2.80.0130.04311.23
5.2.70.0170.05011.06
5.2.60.0200.05011.07
5.2.50.0130.04310.96
5.2.40.0130.03710.94
5.2.30.0070.04710.98
5.2.20.0230.03310.88
5.2.10.0070.05010.91
5.2.00.0130.04010.70
5.1.60.0130.03010.01
5.1.50.0130.03010.19
5.1.40.0030.0439.99
5.1.30.0030.04310.54
5.1.20.0100.04010.38
5.1.10.0130.04010.08
5.1.00.0100.03710.19
5.0.50.0170.0238.58
5.0.40.0170.0208.42
5.0.30.0100.0408.39
5.0.20.0070.0278.30
5.0.10.0070.0278.29
5.0.00.0030.0478.29
4.4.90.0030.0276.28
4.4.80.0070.0306.28
4.4.70.0100.0276.28
4.4.60.0030.0336.28
4.4.50.0070.0276.28
4.4.40.0100.0306.28
4.4.30.0100.0176.28
4.4.20.0070.0206.28
4.4.10.0070.0236.28
4.4.00.0130.0336.28
4.3.110.0030.0336.28
4.3.100.0130.0236.28
4.3.90.0030.0236.28
4.3.80.0070.0306.28
4.3.70.0030.0236.28
4.3.60.0030.0236.28
4.3.50.0070.0206.28
4.3.40.0100.0306.28
4.3.30.0000.0276.28
4.3.20.0070.0206.28
4.3.10.0030.0206.28
4.3.00.0130.0207.60