3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php use Foo as Bar; use const meh as DEH; const meh = 10; class Foo { function __construct() { echo 1; } } echo DEH;

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.0330.00816.41
7.3.00.0270.01516.62
7.2.130.0410.01016.94
7.2.120.0170.00616.25
7.2.110.0170.00616.05
7.2.100.0200.01316.67
7.2.90.0630.00715.64
7.2.80.0500.00815.76
7.2.70.0250.01115.67
7.2.60.0130.00815.58
7.2.50.0300.01015.60
7.2.40.0090.01115.76
7.2.30.0880.01315.80
7.2.20.1060.00615.63
7.2.10.0150.00215.62
7.2.00.0150.00915.77
7.1.250.0380.00415.50
7.1.210.1570.00614.05
7.1.200.0930.00314.04
7.1.190.1120.01013.93
7.1.180.0110.00613.98
7.1.170.0510.00413.71
7.1.160.0110.00413.75
7.1.150.0090.00913.42
7.1.140.0070.00813.92
7.1.130.0600.00613.65
7.1.120.0040.00813.73
7.1.110.0080.00514.02
7.1.100.0780.00613.66
7.1.90.0070.01113.74
7.1.80.0110.00513.68
7.1.70.0920.01413.86
7.1.60.0270.00932.06
7.1.50.0400.00632.08
7.1.40.1130.01031.77
7.1.30.0500.00631.55
7.1.20.0580.00631.89
7.1.10.0060.00813.71
7.1.00.0070.00713.95
7.0.310.0710.00613.15
7.0.300.0100.00513.45
7.0.290.0430.00813.36
7.0.280.1420.00713.52
7.0.270.0320.00613.48
7.0.260.0160.00013.42
7.0.250.1250.00313.43
7.0.240.0030.01013.48
7.0.230.0070.00713.38
7.0.220.0050.01013.52
7.0.210.0150.00313.59
7.0.200.0580.00613.43
7.0.190.0520.00013.46
7.0.180.0940.00313.46
7.0.170.0070.00713.34
7.0.160.0060.01013.39
7.0.150.0280.01113.45
7.0.140.0130.00613.36
7.0.130.0180.00713.29
7.0.120.0000.01413.33
7.0.110.0070.00713.34
7.0.100.0120.00013.45
7.0.90.0530.00713.34
7.0.80.0060.00613.48
7.0.70.0090.00613.33
7.0.60.0100.00313.11
7.0.50.0110.00413.47
7.0.40.0520.00313.56
7.0.30.0060.00613.42
7.0.20.0120.00313.45
7.0.10.0300.00313.50
7.0.00.0860.00713.55
hhvm-3.22.00.0930.14390.47
hhvm-3.21.30.0860.16690.20
hhvm-3.21.00.0760.15689.97
hhvm-3.20.20.0910.14190.35
hhvm-3.19.20.0800.14689.08
hhvm-3.18.50.0960.13688.78
hhvm-3.18.40.0800.16087.91
hhvm-3.15.40.0560.13484.96
5.6.300.0130.00314.38