3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Test { private $value = 2; public function getValue(){ return $this->value; } public function setValue($value){ $this->value = $value; return true; } } $test = new Test(); $test->setValue(2333); echo $test->getValue();
based on GYacF

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.2.60.0000.01516.70
7.2.00.0030.00919.22
7.1.200.0030.01015.76
7.1.100.0000.01217.89
7.1.70.0060.00616.90
7.1.60.0030.02019.46
7.1.50.0030.01016.71
7.1.00.0030.07722.43
7.0.200.0110.00414.97
7.0.140.0070.06722.15
7.0.60.0000.04319.94
7.0.50.0030.08317.88
7.0.40.0100.08020.31
7.0.30.0270.05020.14
7.0.20.0200.04020.34
7.0.10.0030.05320.15
7.0.00.0030.05720.15
5.6.210.0070.07320.52
5.6.200.0030.05718.22
5.6.190.0130.07720.48
5.6.180.0300.07720.49
5.6.170.0200.04720.44
5.6.160.0070.06020.52
5.6.150.0000.06018.28
5.6.140.0070.05718.14
5.6.130.0030.04718.26
5.6.120.0100.03721.06
5.6.110.0070.07021.04
5.6.100.0070.07721.11
5.6.90.0170.07720.88
5.6.80.0170.05320.41
5.5.350.0130.04020.48
5.5.340.0000.05018.09
5.5.330.0030.04320.25
5.5.320.0100.04320.38
5.5.310.0200.04320.36
5.5.300.0000.06317.95
5.5.290.0000.04317.93
5.5.280.0000.06720.97
5.5.270.0170.08020.75
5.5.260.0070.08320.80
5.5.250.0200.07020.67
5.5.240.0070.07020.36
5.4.450.0530.06319.59
5.4.440.0270.07319.58
5.4.430.0200.06019.55
5.4.420.0200.05019.38
5.4.410.0300.04019.45
5.4.400.0200.05719.27
5.4.390.0900.06018.75
5.4.380.0900.06018.73
5.4.370.0900.06018.82
5.4.360.0970.04718.46
5.4.350.1030.04718.75
5.4.340.0970.05318.52
5.4.320.0900.06018.56
5.4.310.1030.06018.79
5.4.300.1070.04018.79
5.4.290.0970.05018.80
5.4.280.0970.05318.58
5.4.270.1000.04718.72
5.4.260.1030.05018.85
5.4.250.0970.04318.80
5.4.240.1070.04718.80
5.4.230.0970.05018.72
5.4.220.1000.05018.50
5.4.210.0870.05318.83
5.4.200.0900.05016.53
5.4.190.0800.06718.68
5.4.180.0970.05718.50
5.4.170.1100.04318.57
5.4.160.1100.05718.74
5.4.150.1070.05018.54
5.4.140.0930.05316.34
5.4.130.0870.05716.20
5.4.120.1030.04016.30
5.4.110.1130.04016.43
5.4.100.0930.04716.18
5.4.90.1030.05716.29
5.4.80.0930.06716.28
5.4.70.0930.05016.39
5.4.60.0830.06716.26
5.4.50.0870.05316.41
5.4.40.0770.06016.27
5.4.30.0930.05316.29
5.4.20.0970.06016.11
5.4.10.1030.05016.29
5.4.00.0970.05015.70
5.3.290.0800.06014.79
5.3.280.0870.05314.57
5.3.270.0930.06314.70
5.3.260.0870.05314.73
5.3.250.1070.05014.80
5.3.240.1000.05014.64
5.3.230.0970.05314.61
5.3.220.0930.05714.59
5.3.210.0970.05314.54
5.3.200.1000.04314.59
5.3.190.0970.05014.70
5.3.180.0900.05714.73
5.3.170.0930.05314.60
5.3.160.0870.06314.61
5.3.150.0870.05314.78
5.3.140.0900.04314.63
5.3.130.0770.06014.73
5.3.120.0970.06714.57
5.3.110.1000.05314.67
5.3.100.0830.05314.13
5.3.90.0830.05714.16
5.3.80.0870.05314.08
5.3.70.0900.05014.08
5.3.60.1200.04714.23
5.3.50.0700.06313.95
5.3.40.0970.05314.05
5.3.30.1030.04314.04
5.3.20.1070.04313.79
5.3.10.1070.04313.70
5.3.00.0930.06013.68
5.2.170.0870.04011.28
5.2.160.0930.03311.18
5.2.150.0670.04711.26
5.2.140.0730.04011.17
5.2.130.0770.04011.15
5.2.120.0700.03711.31
5.2.110.0700.04711.21
5.2.100.0700.04011.13
5.2.90.0730.04011.18
5.2.80.0730.03311.20
5.2.70.0630.05011.08
5.2.60.0830.05011.18
5.2.50.0770.04311.13
5.2.40.0630.04011.03
5.2.30.0670.04011.08
5.2.20.0570.04311.03
5.2.10.0630.04310.98
5.2.00.0630.03310.89
5.1.60.0530.03710.03
5.1.50.0630.03710.04
5.1.40.0700.02310.00
5.1.30.0670.03010.44
5.1.20.0530.04310.46
5.1.10.0530.04010.16
5.1.00.0570.03710.10
5.0.50.0270.0308.59
5.0.40.0230.0308.43
5.0.30.0300.0478.21
5.0.20.0270.0308.38
5.0.10.0370.0238.32
5.0.00.0330.0408.37
4.4.90.0300.0205.95
4.4.80.0330.0235.96
4.4.70.0330.0205.92
4.4.60.0330.0235.92
4.4.50.0300.0205.97
4.4.40.0330.0305.92
4.4.30.0400.0175.92
4.4.20.0300.0235.95
4.4.10.0300.0236.07
4.4.00.0330.0375.94
4.3.110.0200.0305.92
4.3.100.0300.0235.92
4.3.90.0270.0235.92
4.3.80.0300.0375.92
4.3.70.0400.0135.92
4.3.60.0300.0235.92
4.3.50.0370.0175.92
4.3.40.0330.0305.92
4.3.30.0130.0275.92
4.3.20.0130.0275.92
4.3.10.0230.0135.92
4.3.00.0030.02314.42