3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class test { public $var = 1; public function test () { extract($this, EXTR_REFS); var_dump(get_defined_vars()); $var = 2; } } var_dump(new test);

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.0170.00616.27
7.3.00.0100.01016.06
7.2.130.0160.00316.61
7.2.120.0130.00316.32
7.2.110.0140.00316.06
7.2.100.0100.00716.45
7.2.90.0160.00316.38
7.2.80.0110.01416.45
7.2.70.0130.00716.34
7.2.60.0110.00816.52
7.2.50.0120.00616.52
7.2.40.0090.00616.25
7.2.30.0110.00416.16
7.2.20.0100.00716.34
7.2.10.0100.00316.50
7.2.00.0120.00718.01
7.1.250.0090.01215.47
7.1.200.0000.01115.66
7.1.100.0070.00418.25
7.1.70.0060.00617.11
7.1.60.0100.01319.82
7.1.50.0140.00716.99
7.1.00.0030.09322.32
7.0.200.0030.00316.63
7.0.140.0100.06722.13
7.0.60.0070.07319.92
7.0.50.0100.04017.88
7.0.40.0100.03720.23
7.0.30.0330.07720.06
7.0.20.0270.04020.08
7.0.10.0100.07020.20
7.0.00.0030.09020.32
5.6.280.0100.06721.08
5.6.210.0070.08720.63
5.6.200.0000.09318.29
5.6.190.0070.06020.47
5.6.180.0170.04020.52
5.6.170.0330.06320.54
5.6.160.0070.04320.55
5.6.150.0070.05318.23
5.6.140.0070.04018.19
5.6.130.0100.07718.15
5.6.120.0030.05320.99
5.6.110.0070.06720.99
5.6.100.0130.08020.98
5.6.90.0070.08020.97
5.6.80.0030.08320.41
5.6.70.3800.04720.28
5.5.350.0230.08020.46
5.5.340.0100.06318.04
5.5.330.0030.04320.37
5.5.320.0370.07020.26
5.5.310.0170.04020.36
5.5.300.0070.08317.95
5.5.290.0030.04017.95
5.5.280.0100.04720.77
5.5.270.0030.04720.77
5.5.260.0130.07720.89
5.5.250.0100.03720.71
5.5.240.0300.05320.21
5.4.450.0700.05319.47
5.4.440.0770.05719.38
5.4.430.1000.06019.34
5.4.420.0730.05019.38
5.4.410.0730.06319.07
5.4.400.0100.06319.38
5.4.390.1000.04719.13
5.4.380.0270.04718.72
5.4.370.0200.06018.53
5.4.360.0230.04318.45
5.4.350.0100.03212.02
5.4.340.0070.03512.02
5.4.320.0100.03612.50
5.4.310.0050.05412.50
5.4.300.0080.03912.50
5.4.290.0090.04212.50
5.4.280.0070.03612.39
5.4.270.0070.04312.39
5.4.260.0130.06719.02
5.4.250.0070.05318.71
5.4.240.0130.07318.74
5.4.230.0130.05018.95
5.4.220.0130.07718.64
5.4.210.0170.06718.91
5.4.200.0070.08718.94
5.4.190.0170.07018.73
5.4.180.0070.06318.95
5.4.170.0070.07318.95
5.4.160.0070.07018.94
5.4.150.0230.05018.75
5.4.140.0200.07316.38
5.4.130.0130.06716.53
5.4.120.0170.07016.34
5.4.110.0170.07016.33
5.4.100.0200.04316.57
5.4.90.0030.05016.49
5.4.80.0130.05716.63
5.4.70.0170.04016.50
5.4.60.0070.05316.49
5.4.50.0170.04716.46
5.4.40.0070.05016.44
5.4.30.0030.05716.43
5.4.20.0270.05716.47
5.4.10.0170.06716.29
5.4.00.0170.06715.77
5.3.290.0110.04112.80
5.3.280.0070.07314.58
5.3.270.0130.07314.63
5.3.260.0170.07014.69
5.3.250.0130.06014.71
5.3.240.0070.06714.68
5.3.230.0070.07314.77
5.3.220.0100.06714.65
5.3.210.0200.06714.57
5.3.200.0170.06714.63
5.3.190.0100.05014.59
5.3.180.0070.05714.73
5.3.170.0170.04314.72
5.3.160.0070.07714.65
5.3.150.0000.06014.74
5.3.140.0100.04714.55
5.3.130.0100.05314.56
5.3.120.0000.06014.53
5.3.110.0070.05714.70
5.3.100.0100.04714.00
5.3.90.0070.05314.10
5.3.80.0130.06713.84
5.3.70.0100.05014.00
5.3.60.0070.05014.08
5.3.50.0100.04713.92
5.3.40.0100.05013.94
5.3.30.0100.06013.93
5.3.20.0070.05013.68
5.3.10.0100.04713.87
5.3.00.0030.05313.71
5.2.170.0070.04011.13
5.2.160.0070.04011.36
5.2.150.0070.04311.13
5.2.140.0030.04711.32
5.2.130.0130.03710.95
5.2.120.0070.03711.26
5.2.110.0130.04711.29
5.2.100.0100.04011.17
5.2.90.0130.03711.05
5.2.80.0070.04311.04
5.2.70.0070.04011.07
5.2.60.0130.05311.12
5.2.50.0070.04310.96
5.2.40.0130.03311.21
5.2.30.0100.03711.04
5.2.20.0030.04311.04
5.2.10.0130.04710.93
5.2.00.0030.05310.80
5.1.60.0030.03310.00
5.1.50.0130.03710.19
5.1.40.0070.0339.81
5.1.30.0100.03310.41
5.1.20.0100.03010.32
5.1.10.0030.03710.16
5.1.00.0100.03310.05
5.0.50.0130.0308.60
5.0.40.0070.0408.47
5.0.30.0070.0408.21
5.0.20.0100.0208.23
5.0.10.0030.0378.21
5.0.00.0100.0478.14
4.4.90.0070.0277.42
4.4.80.0030.0277.42
4.4.70.0000.0337.42
4.4.60.0030.0307.42
4.4.50.0000.0237.42
4.4.40.0030.0337.42
4.4.30.0100.0137.42
4.4.20.0000.0277.42
4.4.10.0000.0377.42
4.4.00.0030.0377.42
4.3.110.0070.0277.42
4.3.100.0030.0207.42
4.3.90.0000.0237.42
4.3.80.0070.0337.42
4.3.70.0000.0207.42
4.3.60.0000.0277.42
4.3.50.0070.0177.42
4.3.40.0070.0277.42
4.3.30.0070.0177.42
4.3.20.0030.0277.42
4.3.10.0100.0177.42
4.3.00.0400.0237.02