3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class TestClass { protected $test; public function __construct() { $this->test = 'yow'; } protected function get() { echo 'here is your property: ' . $this->test; } public static function __callStatic($name, $arguments) { return call_user_func_array([new TestClass(), $name], $arguments); } } echo TestClass::get();
based on MT88t

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.00.0090.00319.19
7.1.100.0000.01117.91
7.1.70.0000.01017.26
7.1.60.0130.01019.22
7.1.50.0040.01216.95
7.1.00.0030.07322.33
7.0.200.0040.00416.63
7.0.140.0000.07722.08
7.0.60.0070.03719.80
7.0.50.0100.07717.99
7.0.40.0070.04720.40
7.0.30.0200.04320.45
7.0.20.0270.06720.12
7.0.10.0100.06020.26
7.0.00.0170.04720.24
5.6.280.0000.07721.07
5.6.210.0100.08720.47
5.6.200.0030.05718.25
5.6.190.0170.07020.49
5.6.180.0370.05320.77
5.6.170.0270.04720.57
5.6.160.0070.04320.48
5.6.150.0000.04318.19
5.6.140.0000.07318.26
5.6.130.0100.07718.17
5.6.120.0100.05321.12
5.6.110.0130.06720.99
5.6.100.0070.04020.99
5.6.90.0100.09021.09
5.6.80.0000.04720.34
5.5.350.0230.07320.38
5.5.340.0070.04718.02
5.5.330.0130.03720.35
5.5.320.0370.07020.29
5.5.310.0300.07720.34
5.5.300.0070.04317.98
5.5.290.0000.04717.95
5.5.280.0100.08020.88
5.5.270.0030.07320.65
5.5.260.0030.04020.87
5.5.250.0100.03720.55
5.5.240.4300.03020.18
5.4.450.0970.06719.58
5.4.440.0800.04719.51
5.4.430.0700.06319.20
5.4.420.0700.04319.44
5.4.410.0630.07019.06
5.4.400.0030.05719.16
5.4.390.0630.05319.17
5.4.380.0400.06718.71
5.4.370.0270.05318.80
5.4.360.0330.05718.55
5.4.350.0470.05718.61
5.4.340.0230.06018.70
5.4.320.0300.05318.52
5.4.310.0270.06318.71
5.4.300.0270.05718.57
5.4.290.0300.05018.79
5.4.280.0230.05718.55
5.4.270.0270.05718.46
5.4.260.0430.03318.55
5.4.250.0300.05318.61
5.4.240.0330.05018.52
5.4.230.0300.05318.64
5.4.220.0370.04718.71
5.4.210.0270.05318.72
5.4.200.0270.04716.61
5.4.190.0270.05718.54
5.4.180.0300.04718.71
5.4.170.0330.05318.73
5.4.160.0430.04018.59
5.4.150.0470.06018.75
5.4.140.0370.06716.20
5.4.130.0400.04716.20
5.4.120.0400.04716.18
5.4.110.0370.05316.43
5.4.100.0230.05716.31
5.4.90.0230.05716.26
5.4.80.0300.05016.22
5.4.70.0300.07316.19
5.4.60.0400.06016.31
5.4.50.0330.06316.23
5.4.40.0270.06716.41
5.4.30.0400.04316.40
5.4.20.0330.04316.24
5.4.10.0300.04716.38
5.4.00.0300.05715.68
5.3.290.0230.06314.77
5.3.280.0430.05714.63
5.3.270.0170.06314.55
5.3.260.0300.05714.72
5.3.250.0400.04014.71
5.3.240.0230.05714.61
5.3.230.0230.05714.76
5.3.220.0330.05014.62
5.3.210.0300.05014.57
5.3.200.0230.05314.70
5.3.190.0400.04314.60
5.3.180.0330.05314.55
5.3.170.0170.06714.79
5.3.160.0230.05314.73
5.3.150.0170.06014.69
5.3.140.0230.05314.66
5.3.130.0370.07314.68
5.3.120.0430.06714.77
5.3.110.0400.07014.57
5.3.100.0330.05314.17
5.3.90.0430.06714.01
5.3.80.0370.05314.24
5.3.70.0230.05714.18
5.3.60.0270.05714.02
5.3.50.0300.04714.16
5.3.40.0200.05714.17
5.3.30.0200.05313.93
5.3.20.0270.05013.70
5.3.10.0330.04313.76
5.3.00.0270.05313.64
5.2.170.0200.04011.13
5.2.160.0170.04311.25
5.2.150.0300.03011.18
5.2.140.0330.03711.20
5.2.130.0200.04311.33
5.2.120.0170.04311.24
5.2.110.0200.04311.16
5.2.100.0270.03311.18
5.2.90.0200.04011.13
5.2.80.0200.04311.11
5.2.70.0270.03711.24
5.2.60.0170.04311.04
5.2.50.0270.03711.15
5.2.40.0130.04711.05
5.2.30.0200.04010.97
5.2.20.0130.04311.00
5.2.10.0130.04310.96
5.2.00.0300.03710.90
5.1.60.0230.03310.18
5.1.50.0230.02710.04
5.1.40.0100.04010.18
5.1.30.0270.03010.38
5.1.20.0200.04310.54
5.1.10.0200.03310.11
5.1.00.0230.03010.26
5.0.50.0130.0238.59
5.0.40.0200.0338.45
5.0.30.0130.0438.41
5.0.20.0100.0378.39
5.0.10.0130.0338.29
5.0.00.0130.0408.29
4.4.90.0070.0236.58
4.4.80.0070.0236.58
4.4.70.0070.0236.58
4.4.60.0100.0206.58
4.4.50.0070.0236.58
4.4.40.0100.0336.58
4.4.30.0130.0176.58
4.4.20.0030.0276.58
4.4.10.0070.0276.58
4.4.00.0130.0306.58
4.3.110.0100.0206.58
4.3.100.0100.0206.58
4.3.90.0030.0236.58
4.3.80.0030.0376.58
4.3.70.0070.0336.58
4.3.60.0100.0206.58
4.3.50.0070.0236.58
4.3.40.0070.0376.58
4.3.30.0030.0236.58
4.3.20.0100.0176.58
4.3.10.0000.0276.58
4.3.00.0130.0207.34