3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php for ($i = 0; $i < 10; $i++) { var_dump(log10(ceil(log10($i % 10 + 1))) * 20 + 1); }

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.0160.00598.97
7.3.0rc30.0170.01017.05
7.2.00.0030.00919.75
7.1.100.0000.01218.40
7.1.70.0040.00417.53
7.1.60.0110.01419.29
7.1.50.0090.01617.42
7.1.00.0000.05322.72
7.0.200.0150.00715.39
7.0.140.0130.06322.61
7.0.60.0130.07720.20
7.0.50.0000.07018.16
7.0.40.0100.08320.50
7.0.30.0330.08320.36
7.0.20.0270.08320.35
7.0.10.0300.07320.40
7.0.00.0130.08320.47
5.6.280.0030.07321.31
5.6.210.0130.03321.00
5.6.200.0100.07718.60
5.6.190.0030.04720.72
5.6.180.3970.04320.70
5.6.170.0330.07020.69
5.6.160.0070.04320.68
5.6.150.0070.05018.52
5.6.140.0130.05318.49
5.6.130.0100.08318.52
5.6.120.0070.04721.44
5.6.110.0130.08721.51
5.6.100.0070.08721.41
5.6.90.0000.04721.47
5.6.80.0070.08320.77
5.6.70.0230.06320.67
5.5.350.0230.06320.81
5.5.340.0030.05318.34
5.5.330.0100.08020.50
5.5.320.0200.04020.62
5.5.310.0430.06720.49
5.5.300.0030.04018.29
5.5.290.0070.06718.23
5.5.280.0000.08321.23
5.5.270.0170.07021.32
5.5.260.0030.09021.36
5.5.250.0070.08720.88
5.5.240.0130.07720.58
5.4.450.1170.05319.85
5.4.440.0030.05319.49
5.4.430.0070.04319.84
5.4.420.1170.03719.86
5.4.410.1800.04319.59
5.4.400.1570.03319.31
5.4.390.1500.04319.34
5.4.380.2130.03719.31
5.4.370.1500.04319.30
5.4.360.1570.03719.34
5.4.350.1530.03719.52
5.4.340.1600.04019.47
5.4.320.2230.03719.34
5.4.310.1770.04319.39
5.4.300.0800.03719.17
5.4.290.0100.05019.32
5.4.280.0200.04319.46
5.4.270.1600.03319.47
5.4.260.1730.03019.21
5.4.250.1630.03019.13
5.4.240.1600.03319.03
5.4.230.1700.02719.30
5.4.220.1470.03719.61
5.4.210.1570.04019.51
5.4.200.1770.02719.33
5.4.190.1670.03319.28
5.4.180.1900.03319.29
5.4.170.1630.03019.13
5.4.160.1300.03319.14
5.4.150.0000.04719.01
5.4.140.0070.04316.60
5.4.130.0670.03316.68
5.4.120.1570.03016.70
5.4.110.1570.03016.86
5.4.100.1430.03316.60
5.4.90.1430.03316.64
5.4.80.1430.03316.84
5.4.70.1430.03316.77
5.4.60.1500.03716.69
5.4.50.1570.03016.79
5.4.40.1230.04016.44
5.4.30.1600.03016.46
5.4.20.1530.03316.82
5.4.10.1600.03716.79
5.4.00.0770.03716.14
5.3.290.0000.04014.98
5.3.280.0030.04014.92
5.3.270.1130.04014.88
5.3.260.1400.03314.82
5.3.250.1500.03714.83
5.3.240.1430.03714.82
5.3.230.1430.03714.89
5.3.220.1870.04314.89
5.3.210.1600.03314.89
5.3.200.1630.04014.71
5.3.190.1470.04014.98
5.3.180.1330.04314.92
5.3.170.0100.03314.84
5.3.160.0070.07314.92
5.3.150.1200.05314.88
5.3.140.1370.04014.83
5.3.130.0030.07714.90
5.3.120.0030.04714.82
5.3.110.0800.04014.84
5.3.100.1700.05314.27
5.3.90.1500.04014.23
5.3.80.1430.04014.39
5.3.70.1670.04014.24
5.3.60.1730.04714.21
5.3.50.1770.04314.13
5.3.40.1670.05014.27
5.3.30.1770.04314.19
5.3.20.1730.04713.92
5.3.10.1730.04313.77
5.3.00.0930.04013.75
5.2.170.0000.03011.46
5.2.160.0030.03311.38
5.2.150.0700.03011.61
5.2.140.1270.03011.43
5.2.130.1600.02711.57
5.2.120.1570.03711.59
5.2.110.1470.03311.48
5.2.100.1230.02711.59
5.2.90.1500.04011.31
5.2.80.1670.03011.56
5.2.70.1170.03311.27
5.2.60.1500.04011.40
5.2.50.1330.02711.18
5.2.40.1030.02711.22
5.2.30.1030.03311.23
5.2.20.1000.03011.27
5.2.10.0870.03311.03
5.2.00.0000.04010.88
5.1.60.0070.02010.27
5.1.50.0000.02710.17
5.1.40.0470.01710.36
5.1.30.1000.02710.61
5.1.20.1330.02310.52
5.1.10.1030.02310.31
5.1.00.1100.02310.31
5.0.50.0700.0238.87
5.0.40.0630.0238.58
5.0.30.0670.0478.58
5.0.20.0630.0308.50
5.0.10.0530.0178.56
5.0.00.0400.0478.59
4.4.90.0530.0137.81
4.4.80.0300.0207.81
4.4.70.0500.0177.81
4.4.60.0500.0177.81
4.4.50.0630.0177.81
4.4.40.0530.0277.81
4.4.30.0600.0207.81
4.4.20.0700.0207.81
4.4.10.0600.0207.81
4.4.00.0500.0277.81
4.3.110.0530.0177.81
4.3.100.0470.0137.81
4.3.90.0000.0177.81
4.3.80.0000.0237.81
4.3.70.0000.0137.81
4.3.60.0000.0177.81
4.3.50.0030.0137.81
4.3.40.0070.0337.81
4.3.30.0202.3936.56
4.3.20.0030.0237.81
4.3.10.0070.0277.81
4.3.00.0200.0277.81