3v4l.org

run code in 200+ php & hhvm versions
<?php function inspect($object, $property) { return (function () use ($property) { return $this->$property; })->call($object); } class Foo { private $bar = "hands off!"; } var_dump(inspect(new Foo(), "bar"));

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.4.0beta20.0080.00814.75
7.4.0beta10.0080.00714.72
7.4.0alpha30.0080.00714.76
7.4.0alpha20.0080.00714.81
7.4.0alpha10.0080.00714.77
7.3.80.0080.00714.71
7.3.70.0080.00814.70
7.3.60.0070.00814.69
7.3.50.0080.00714.65
7.3.40.0080.00714.67
7.3.30.0080.00714.66
7.3.20.0180.00615.04
7.3.10.0170.00615.05
7.3.00.0150.00715.06
7.2.210.0090.00714.85
7.2.200.0080.00714.85
7.2.190.0080.00714.84
7.2.180.0080.00814.83
7.2.170.0080.00714.84
7.2.160.0080.00814.81
7.2.150.0180.00715.24
7.2.140.0160.00715.23
7.2.130.0180.00715.19
7.2.120.0170.00715.23
7.2.110.0160.00815.23
7.2.100.0160.00715.23
7.2.90.0180.00715.22
7.2.80.0140.00715.24
7.2.70.0170.00715.25
7.2.60.0160.00715.25
7.2.50.0180.00715.23
7.2.40.0210.00715.27
7.2.30.0160.00715.26
7.2.20.0150.00815.24
7.2.10.0160.00715.25
7.2.00.0190.00715.29
7.1.310.0170.00614.18
7.1.300.0140.00714.12
7.1.290.0150.00714.13
7.1.280.0160.00714.14
7.1.270.0180.00614.14
7.1.260.0180.00614.14
7.1.250.0160.00714.16
7.1.240.0170.00714.56
7.1.230.0140.00814.49
7.1.220.0190.00914.54
7.1.210.0140.00914.53
7.1.200.0210.00614.58
7.1.190.0190.00914.56
7.1.180.0160.00614.53
7.1.170.0170.00714.50
7.1.160.0150.00714.57
7.1.150.0150.00914.61
7.1.140.0150.00814.56
7.1.130.0130.00914.59
7.1.120.0240.00714.60
7.1.110.0170.00614.59
7.1.100.0150.00714.61
7.1.90.0170.00714.42
7.1.80.0140.00714.50
7.1.70.0170.00614.49
7.1.60.0140.00814.47
7.1.50.0210.00814.50
7.1.40.0170.00714.46
7.1.30.0140.00814.47
7.1.20.0220.00714.45
7.1.10.0140.00914.48
7.1.00.0200.00714.34
7.0.330.0230.00813.96
7.0.320.0150.00814.18
7.0.310.0150.00814.18
7.0.300.0200.00714.09
7.0.290.0170.00814.08
7.0.280.0160.00714.07
7.0.270.0140.00914.15
7.0.260.0200.00714.01
7.0.250.0160.00614.18
7.0.240.0170.00914.13
7.0.230.0150.00714.07
7.0.220.0150.00914.03
7.0.210.0150.00914.06
7.0.200.0150.00714.06
7.0.190.0240.00714.07
7.0.180.0160.00714.08
7.0.170.0150.00714.10
7.0.160.0160.00714.09
7.0.150.0140.00814.02
7.0.140.0170.00814.01
7.0.130.0370.00613.98
7.0.120.0150.00814.03
7.0.110.0190.00814.03
7.0.100.0150.00713.98
7.0.90.0170.00813.90
7.0.80.0150.00813.99
7.0.70.0150.00814.05
7.0.60.0150.00714.03
7.0.50.0120.01014.15
7.0.40.0140.00914.12
7.0.30.0130.00814.10
7.0.20.0140.00813.98
7.0.10.0150.00814.15
7.0.00.0170.00814.14
hhvm-3.22.00.1370.17991.22
hhvm-3.21.30.1270.18088.96
hhvm-3.21.00.1270.19088.95
hhvm-3.20.20.1340.18089.41
hhvm-3.19.20.1320.18888.83
hhvm-3.18.50.1160.18887.33
hhvm-3.18.40.1300.18887.26
hhvm-3.17.30.1120.16986.50
hhvm-3.15.40.1090.16284.33
hhvm-3.13.20.1300.16895.48
hhvm-3.12.140.1280.18194.42
hhvm-3.11.10.1160.17786.22
hhvm-3.10.10.1200.17183.41
5.6.400.0090.00814.08
5.6.390.0120.00814.01
5.6.380.0130.00814.06
5.6.370.0130.00814.14
5.6.360.0130.00914.10
5.6.350.0110.01014.10
5.6.340.0100.01014.07
5.6.330.0130.00814.03
5.6.320.0130.00914.11
5.6.310.0130.01014.07
5.6.300.0130.00614.10
5.6.290.0120.00814.08
5.6.280.0120.00814.08
5.6.270.0140.00614.06
5.6.260.0110.01014.07
5.6.250.0110.00814.04
5.6.240.0110.00814.06
5.6.230.0130.00714.05
5.6.220.0130.00814.05
5.6.210.0120.00813.99
5.6.200.0110.00814.05
5.6.190.0110.00914.05
5.6.180.0110.00814.06
5.6.170.0130.00713.99
5.6.160.0140.00714.02
5.6.150.0130.00713.96
5.6.140.0130.00714.02
5.6.130.0140.00614.08
5.6.120.0120.00814.07
5.6.110.0120.00913.98
5.6.100.0120.00714.04
5.6.90.0130.00814.01
5.6.80.0110.00913.98
5.6.70.0120.00813.96
5.6.60.0100.00913.93
5.6.50.0120.00813.94
5.6.40.0120.00813.99
5.6.30.0120.00713.98
5.6.20.0120.00913.95
5.6.10.0140.00714.00
5.6.00.0120.00813.94
5.5.380.0120.00713.93
5.5.370.0110.00913.94
5.5.360.0110.00914.04
5.5.350.0110.00714.00
5.5.340.0120.00813.88
5.5.330.0120.00613.91
5.5.320.0130.00814.01
5.5.310.0120.00813.94
5.5.300.0110.00813.97
5.5.290.0130.00714.02
5.5.280.0120.00713.88
5.5.270.0130.00614.06
5.5.260.0120.00813.92
5.5.250.0100.00913.93
5.5.240.0110.00813.85
5.5.230.0110.00813.93
5.5.220.0130.00813.94
5.5.210.0110.00813.90
5.5.200.0120.00813.86
5.5.190.0110.00713.91
5.5.180.0130.00613.84
5.5.170.0130.00713.90
5.5.160.0140.00813.96
5.5.150.0120.00813.94
5.5.140.0120.00713.93
5.5.130.0110.00813.91
5.5.120.0120.00813.91
5.5.110.0110.00813.91
5.5.100.0130.00713.88
5.5.90.0090.01013.88
5.5.80.0120.00813.95
5.5.70.0130.00813.91
5.5.60.0120.00813.88
5.5.50.0130.00813.91
5.5.40.0120.00713.82
5.5.30.0120.00713.82
5.5.20.0110.00813.92
5.5.10.0120.00813.91
5.5.00.0110.00813.87
5.4.450.0090.00711.12
5.4.440.0090.00511.11
5.4.430.0100.00411.12
5.4.420.0110.00411.08
5.4.410.0090.00511.10
5.4.400.0080.00711.09
5.4.390.0080.00611.09
5.4.380.0100.00511.10
5.4.370.0090.00511.11
5.4.360.0080.00611.09
5.4.350.0080.00611.08
5.4.340.0100.00511.10
5.4.330.0090.00611.09
5.4.320.0100.00511.13
5.4.310.0100.00511.09
5.4.300.0090.00511.08
5.4.290.0090.00511.08
5.4.280.0090.00411.08
5.4.270.0090.00511.08
5.4.260.0090.00611.05
5.4.250.0090.00511.07
5.4.240.0090.00511.07
5.4.230.0090.00511.04
5.4.220.0080.00611.12
5.4.210.0090.00611.05
5.4.200.0090.00611.06
5.4.190.0080.00611.14
5.4.180.0070.00711.07
5.4.170.0080.00611.12
5.4.160.0090.00611.06
5.4.150.0090.00611.08
5.4.140.0100.00511.12
5.4.130.0090.00511.10
5.4.120.0100.00511.03
5.4.110.0100.00511.07
5.4.100.0090.00611.07
5.4.90.0090.00511.05
5.4.80.0090.00511.09
5.4.70.0100.00511.07
5.4.60.0090.00611.13
5.4.50.0080.00611.08
5.4.40.0080.00611.10
5.4.30.0090.00511.13
5.4.20.0090.00511.12
5.4.10.0080.00611.11
5.4.00.0090.00511.08
5.3.290.0080.00610.92
5.3.280.0080.00610.86
5.3.270.0060.00710.90
5.3.260.0080.00510.89
5.3.250.0080.00610.87
5.3.240.0100.00410.83
5.3.230.0080.00510.84
5.3.220.0070.00610.84
5.3.210.0090.00610.85
5.3.200.0090.00510.85
5.3.190.0100.00310.90
5.3.180.0090.00610.96
5.3.170.0090.00410.94
5.3.160.0060.00710.92
5.3.150.0080.00510.95
5.3.140.0090.00510.91
5.3.130.0090.00510.92
5.3.120.0110.00310.89
5.3.110.0080.00510.89
5.3.100.0080.00510.92
5.3.90.0080.00610.92
5.3.80.0080.00510.87
5.3.70.0080.00610.86
5.3.60.0070.00610.87
5.3.50.0080.00510.90
5.3.40.0080.00610.85
5.3.30.0070.00510.88
5.3.20.0070.00610.86
5.3.10.0080.00510.81
5.3.00.0070.00510.78
5.2.170.0080.00310.51
5.2.160.0070.00410.52
5.2.150.0070.00510.49
5.2.140.0070.00410.50
5.2.130.0070.00510.50
5.2.120.0060.00510.48
5.2.110.0070.00510.50
5.2.100.0080.00310.49
5.2.90.0070.00510.49
5.2.80.0080.00410.49
5.2.70.0080.00410.50
5.2.60.0070.00510.46
5.2.50.0080.00410.49
5.2.40.0070.00410.48
5.2.30.0070.00510.44
5.2.20.0070.00410.46
5.2.10.0070.00410.44
5.2.00.0060.00510.42
5.1.60.0070.00310.30
5.1.50.0060.00410.31
5.1.40.0080.00310.32
5.1.30.0060.00410.35
5.1.20.0050.00510.33
5.1.10.0060.00410.33
5.1.00.0060.00410.29
5.0.50.0040.00510.26
5.0.40.0060.00210.26
5.0.30.0040.00410.26
5.0.20.0060.00310.26
5.0.10.0060.00210.26
5.0.00.0050.00310.26
4.4.90.0040.00310.26
4.4.80.0050.00310.26
4.4.70.0050.00310.26
4.4.60.0040.00310.26
4.4.50.0050.00310.26
4.4.40.0040.00310.26
4.4.30.0040.00310.26
4.4.20.0050.00210.26
4.4.10.0040.00310.26
4.4.00.0040.00310.26
4.3.110.0040.00310.26
4.3.100.0050.00310.26
4.3.90.0050.00210.26
4.3.80.0050.00210.26
4.3.70.0050.00310.26
4.3.60.0030.00410.26
4.3.50.0040.00410.26
4.3.40.0040.00310.26
4.3.30.0030.00410.26
4.3.20.0030.00310.26
4.3.10.0030.00410.26
4.3.00.0030.00310.26