3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php trait TestTrait { public static function testStaticFunction() { return __CLASS__; } } class Tester { use TestTrait; } $tester = Tester::testStaticFunction();

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.0rc40.0300.00398.97
7.3.0rc30.0150.00716.64
7.3.0beta10.0090.00012.68
7.1.200.0030.00915.84
7.1.70.0080.00317.21
7.1.60.0070.01719.40
7.1.50.0060.01616.89
7.1.00.0030.03722.45
7.0.200.0210.00016.42
7.0.140.0070.07022.00
7.0.60.0100.06019.85
7.0.50.0070.05317.87
7.0.40.0030.04317.73
7.0.30.0100.08017.82
7.0.20.0030.05317.82
7.0.10.0070.03717.84
7.0.00.0100.03717.78
5.6.280.0030.07320.92
5.6.210.0130.06720.71
5.6.200.0070.07318.23
5.6.190.0030.04318.30
5.6.180.0100.03718.27
5.6.170.0100.07318.19
5.6.160.0100.07718.18
5.6.150.0100.06318.18
5.6.140.0030.04018.18
5.6.130.0130.06018.28
5.6.120.0130.07718.18
5.6.110.0030.08318.20
5.6.100.0130.06318.18
5.6.90.0070.05018.20
5.6.80.0030.05017.53
5.6.70.0100.07717.61
5.6.60.0100.07717.55
5.6.50.0030.04017.60
5.6.40.0070.07717.54
5.6.30.0070.06017.55
5.6.20.0070.05717.60
5.6.10.0100.07717.51
5.6.00.0030.08717.63
5.5.350.0130.04320.37
5.5.340.0030.08017.92
5.5.330.0030.07018.02
5.5.320.0100.06718.09
5.5.310.0100.04018.07
5.5.300.0100.07718.03
5.5.290.0100.05018.08
5.5.280.0070.07318.06
5.5.270.0100.08017.91
5.5.260.0070.08017.93
5.5.250.0130.04017.79
5.5.240.0100.08017.42
5.5.230.0100.07317.43
5.5.220.0030.07317.32
5.5.210.0030.04017.33
5.5.200.0100.07317.44
5.5.190.0070.05017.37
5.5.180.0070.07317.30
5.5.160.0070.04317.27
5.5.150.0100.07317.36
5.5.140.0000.06717.30
5.5.130.0070.06717.27
5.5.120.0170.02717.41
5.5.110.0070.07717.38
5.5.100.0030.07317.20
5.5.90.0070.07717.22
5.5.80.0100.07717.20
5.5.70.0130.06017.21
5.5.60.0070.07717.22
5.5.50.0000.04317.32
5.5.40.0000.04017.29
5.5.30.0030.06317.22
5.5.20.0170.06017.29
5.5.10.0070.04017.19
5.5.00.0130.05717.26
5.4.450.0130.05019.32
5.4.440.0130.05719.31
5.4.430.0070.07719.38
5.4.420.0100.08019.37
5.4.410.0030.08019.17
5.4.400.0030.07719.04
5.4.390.0100.07319.09
5.4.380.0030.08018.89
5.4.370.0030.04019.08
5.4.360.0030.07019.12
5.4.350.0070.05018.99
5.4.340.0130.07018.95
5.4.320.0030.07718.89
5.4.310.0070.07319.05
5.4.300.0030.06718.88
5.4.290.0130.07319.03
5.4.280.0170.07019.01
5.4.270.0070.04019.03
5.4.260.0100.07719.11
5.4.250.0030.08019.13
5.4.240.0100.06319.11
5.4.230.0030.07718.98
5.4.220.0070.06719.07
5.4.210.0100.05719.03
5.4.200.0070.04019.12
5.4.190.0030.08319.04
5.4.180.0100.06719.26
5.4.170.0070.07019.27
5.4.160.0100.07019.03
5.4.150.0030.04019.00
5.4.140.0200.06316.30
5.4.130.0030.04316.53
5.4.120.0100.06716.28
5.4.110.0100.07016.43
5.4.100.0030.05016.38
5.4.90.0030.04316.33
5.4.80.0070.07016.21
5.4.70.0030.08016.39
5.4.60.0030.06016.56
5.4.50.0070.07716.38
5.4.40.0070.07716.32
5.4.30.0030.06716.37
5.4.20.0030.07716.44
5.4.10.0070.06016.43
5.4.00.0030.04715.74
5.3.290.0130.04014.75
5.3.280.0070.06714.42
5.3.270.0100.07014.60
5.3.260.0100.07314.44
5.3.250.0100.06714.52
5.3.240.0070.05014.57
5.3.230.0130.06314.68
5.3.220.0030.08014.39
5.3.210.0200.05714.65
5.3.200.0030.06714.35
5.3.190.0070.07314.53
5.3.180.0100.07014.49
5.3.170.0030.06014.52
5.3.160.0030.08314.64
5.3.150.0100.07014.53
5.3.140.0000.07014.49
5.3.130.0070.06014.37
5.3.120.0100.07314.50
5.3.110.0070.08014.51
5.3.100.0030.07714.01
5.3.90.0100.07713.93
5.3.80.0100.04013.98
5.3.70.0070.06013.87
5.3.60.0100.07013.97
5.3.50.0100.07713.80
5.3.40.0030.07013.87
5.3.30.0000.07013.86
5.3.20.0130.06713.78
5.3.10.0100.06713.43
5.3.00.0100.07313.62
5.2.170.0070.03310.93
5.2.160.0000.06711.10
5.2.150.0000.06711.13
5.2.140.0070.05711.28
5.2.130.0000.04711.10
5.2.120.0030.06310.92
5.2.110.0100.05311.00
5.2.100.0070.06311.03
5.2.90.0030.05710.93
5.2.80.0070.06011.12
5.2.70.0100.05011.04
5.2.60.0070.06010.91
5.2.50.0070.06310.80
5.2.40.0070.05310.98
5.2.30.0030.06710.95
5.2.20.0030.06310.93
5.2.10.0000.06710.77
5.2.00.0070.05710.74
5.1.60.0000.06010.04
5.1.50.0000.02710.04
5.1.40.0000.0279.80
5.1.30.0030.03010.35
5.1.20.0000.02710.39
5.1.10.0000.02710.06
5.1.00.0000.03010.11
5.0.50.0000.0208.52
5.0.40.0000.0238.38
5.0.30.0070.0278.18
5.0.20.0000.0238.16
5.0.10.0030.0238.11
5.0.00.0030.0278.21
4.4.90.0030.0308.00
4.4.80.0030.0338.00
4.4.70.0000.0408.00
4.4.60.0000.0408.00
4.4.50.0030.0278.00
4.4.40.0000.0338.00
4.4.30.0000.0178.00
4.4.20.0070.0108.00
4.4.10.0000.0178.00
4.4.00.0000.0238.00
4.3.110.0000.0178.00
4.3.100.0000.0138.00
4.3.90.0000.0138.00
4.3.80.0000.0238.00
4.3.70.0000.0138.00
4.3.60.0000.0138.00
4.3.50.0000.0138.00
4.3.40.0000.0278.00
4.3.30.0000.0138.00
4.3.20.0000.0178.00
4.3.10.0030.0138.00
4.3.00.0030.0178.00