3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { static private $var = "Hello"; public function __construct() { $a = "var"; echo($this->$a); } } new A();
based on GsgJq

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.0030.01016.62
7.3.00.0030.00716.36
7.2.130.0040.00816.86
7.2.120.0060.00516.75
7.2.110.0040.01016.64
7.2.100.0100.00316.71
7.2.90.0080.00516.70
7.2.80.0040.00916.81
7.2.70.0030.00917.02
7.2.60.0030.00816.76
7.2.50.0060.00816.67
7.2.40.0050.00916.94
7.2.30.0080.00616.90
7.2.20.0060.00216.89
7.2.10.0060.00716.69
7.2.00.0090.00617.72
7.1.250.0030.01015.55
7.1.240.0040.00815.66
7.1.230.0070.00715.75
7.1.220.0030.00715.79
7.1.210.0040.01115.80
7.1.200.0100.00415.79
7.1.190.0070.00315.41
7.1.180.0030.01115.50
7.1.170.0090.00315.70
7.1.160.0060.00615.54
7.1.150.0040.01115.43
7.1.140.0070.00715.82
7.1.130.0070.00715.51
7.1.120.0030.00515.70
7.1.110.0040.00415.68
7.1.100.0090.00416.95
7.1.90.0050.00515.57
7.1.80.0030.00915.95
7.1.70.0030.01116.28
7.1.60.0080.00917.93
7.1.50.0080.00616.27
7.1.40.0070.00715.54
7.1.30.0070.00715.84
7.1.20.0030.00815.85
7.1.10.0030.01215.83
7.1.00.0030.04219.08
7.0.320.0030.01215.38
7.0.310.0030.01015.40
7.0.300.0000.01315.37
7.0.290.0040.00815.44
7.0.280.0000.00915.20
7.0.270.0060.00315.14
7.0.260.0030.01315.00
7.0.250.0000.01315.46
7.0.240.0090.00315.53
7.0.230.0060.00615.28
7.0.220.0130.00315.38
7.0.210.0050.00515.36
7.0.200.0080.00615.91
7.0.190.0060.00615.40
7.0.180.0090.00315.39
7.0.170.0040.00815.22
7.0.160.0030.01015.49
7.0.150.0080.00315.51
7.0.140.0070.00015.39
7.0.130.0030.00715.21
7.0.120.0070.00315.58
7.0.110.0040.00815.14
7.0.100.0050.03817.57
7.0.90.0140.03417.69
7.0.80.0140.03317.52
7.0.70.0060.02517.71
7.0.60.0080.02117.72
7.0.50.0130.01717.89
7.0.40.0030.02816.70
7.0.30.0030.02616.69
7.0.20.0090.02216.72
7.0.10.0070.02216.77
7.0.00.0040.01816.71
hhvm-3.22.00.0470.14190.48
hhvm-3.21.30.0460.11990.53
hhvm-3.21.00.0410.14690.15
hhvm-3.20.20.0510.12991.19
hhvm-3.19.20.0530.10789.87
hhvm-3.18.50.0590.10488.32
hhvm-3.18.40.0540.11188.87
hhvm-3.17.30.0600.09387.83
hhvm-3.15.40.0370.10585.36
hhvm-3.13.20.0500.10696.91
hhvm-3.12.140.0590.09295.87
hhvm-3.11.10.0540.12287.71
hhvm-3.10.10.0550.10984.83
5.6.380.0090.00314.11
5.6.370.0030.00914.17
5.6.360.0030.00714.38
5.6.350.0030.00714.72
5.6.340.0060.00914.01
5.6.330.0000.00814.50
5.6.320.0070.00714.09
5.6.310.0120.00314.41
5.6.300.0030.01314.61
5.6.290.0100.00314.28
5.6.280.0070.02717.57
5.6.270.0060.00314.12
5.6.260.0100.00314.24
5.6.250.0050.04517.53
5.6.240.0050.04717.38
5.6.230.0130.03617.45
5.6.220.0050.02517.31
5.6.210.0080.02517.42
5.6.200.0080.01817.88
5.6.190.0030.02517.44
5.6.180.0100.02317.72
5.6.170.0030.02217.53
5.6.160.0000.02517.67
5.6.150.0060.02417.69
5.6.140.0020.02517.70
5.6.130.0050.02217.57
5.6.120.0050.02817.79
5.6.110.0070.02217.68
5.6.100.0090.02317.76
5.6.90.0060.02317.57
5.6.80.0060.02317.22
5.6.70.0020.03117.28
5.6.60.0050.02017.40
5.6.50.0020.02517.26
5.6.40.0030.02317.44
5.6.30.0070.02317.28
5.6.20.0020.02617.36
5.6.10.0030.02817.36
5.6.00.0080.03017.27
5.5.380.0040.02815.82
5.5.370.0120.03315.91
5.5.360.0110.01715.88
5.5.350.0070.02515.69
5.5.340.0060.02216.06
5.5.330.0020.02516.06
5.5.320.0060.02616.22
5.5.310.0050.02316.00
5.5.300.0060.02416.02
5.5.290.0030.02016.06
5.5.280.0060.02516.01
5.5.270.0030.02515.77
5.5.260.0030.02615.92
5.5.250.0020.02215.88
5.5.240.0060.02015.65
5.5.230.0050.02315.65
5.5.220.0050.02215.72
5.5.210.0050.02015.62
5.5.200.0020.02515.53
5.5.190.0050.02515.61
5.5.180.0040.01915.49
5.5.170.0040.00414.07
5.5.160.0050.02015.57
5.5.150.0020.02215.69
5.5.140.0050.01915.59
5.5.130.0050.04215.59
5.5.120.0070.02515.69
5.5.110.0060.04315.57
5.5.100.0060.03615.50
5.5.90.0080.03615.58
5.5.80.0060.02515.56
5.5.70.0020.04415.63
5.5.60.0030.03315.61
5.5.50.0060.04015.55
5.5.40.0020.04215.50
5.5.30.0040.03715.56
5.5.20.0050.02315.63
5.5.10.0040.04515.50
5.5.00.0050.04215.54
5.4.450.0030.02515.41
5.4.440.0070.02115.08
5.4.430.0070.01815.12
5.4.420.0040.02215.34
5.4.410.0070.02015.03
5.4.400.0100.01714.81
5.4.390.0090.01714.92
5.4.380.0040.02215.01
5.4.370.0100.01814.89
5.4.360.0070.02014.99
5.4.350.0070.01715.07
5.4.340.0090.01915.12
5.4.330.0070.00711.04
5.4.320.0070.02014.97
5.4.310.0050.02115.05
5.4.300.0030.02315.03
5.4.290.0100.04014.74
5.4.280.0070.03614.78
5.4.270.0050.03814.96
5.4.260.0120.02714.97
5.4.250.0050.03415.09
5.4.240.0030.03514.95
5.4.230.0040.04414.98
5.4.220.0080.02315.04
5.4.210.0100.03715.09
5.4.200.0050.02514.88
5.4.190.0020.02514.96
5.4.180.0060.04115.11
5.4.170.0030.04215.03
5.4.160.0110.03515.00
5.4.150.0080.04015.12
5.4.140.0100.02213.76
5.4.130.0060.02313.51
5.4.120.0070.03513.61
5.4.110.0070.02513.75
5.4.100.0090.03813.68
5.4.90.0030.04213.77
5.4.80.0120.02213.61
5.4.70.0110.03313.68
5.4.60.0070.03913.75
5.4.50.0080.03313.73
5.4.40.0060.04013.73
5.4.30.0050.03813.60
5.4.20.0140.03013.75
5.4.10.0110.03313.75
5.4.00.0020.02813.48