3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Some { public function __construct() { echo get_class($this); } } class Any extends Some { public function call_construct() { parent::__construct(); } } $some = new Some; $any = new Any; $any->call_construct();

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.0070.01198.97
7.3.0rc30.0200.00816.18
7.3.0beta10.0000.01012.75
7.3.0alpha10.0030.00312.78
7.2.60.0200.00416.79
7.2.00.0000.01219.47
7.1.200.0030.00515.54
7.1.100.0030.01218.18
7.1.70.0000.00716.92
7.1.60.0090.01519.82
7.1.50.0060.01016.87
7.1.00.0070.07322.30
7.0.200.0050.00516.80
7.0.140.0000.07721.96
7.0.60.0000.05719.88
7.0.50.0030.05317.86
7.0.40.0170.06020.40
7.0.30.0270.06720.24
7.0.20.0400.06720.16
7.0.10.0230.04720.18
7.0.00.0100.08320.08
5.6.280.0000.07720.83
5.6.210.0070.05020.54
5.6.200.0170.05018.19
5.6.190.0070.04720.77
5.6.180.3270.04020.63
5.6.170.0300.06720.39
5.6.160.0030.05020.39
5.6.150.0100.07318.16
5.6.140.0000.07718.28
5.6.130.0070.08318.24
5.6.120.0030.05021.15
5.6.110.0030.06721.14
5.6.100.0030.04020.97
5.6.90.0070.07020.99
5.6.80.0030.05320.38
5.6.70.0430.06020.42
5.5.350.0130.07720.41
5.5.340.0100.03717.95
5.5.330.0000.05720.57
5.5.320.0230.04320.23
5.5.310.0230.08020.34
5.5.300.0100.07717.96
5.5.290.0000.04717.95
5.5.280.0070.09020.77
5.5.270.0070.08720.95
5.5.260.0100.08320.77
5.5.250.0030.04020.62
5.5.240.0130.07720.28
5.4.450.0730.05719.20
5.4.440.0630.05719.66
5.4.430.0830.05319.58
5.4.420.0970.04019.30
5.4.410.0930.05719.26
5.4.400.0370.07018.84
5.4.390.0430.06318.72
5.4.380.0400.04718.76
5.4.370.0200.06318.59
5.4.360.0330.04718.46
5.4.350.0330.05718.59
5.4.340.0370.05018.70
5.4.320.0140.04612.50
5.4.310.0060.03812.50
5.4.300.0080.04112.50
5.4.290.0070.04112.50
5.4.280.0030.04112.39
5.4.270.0090.04212.40
5.4.260.0170.05318.79
5.4.250.0100.05318.79
5.4.240.0270.05718.74
5.4.230.0130.06718.67
5.4.220.0100.06018.96
5.4.210.0170.06318.74
5.4.200.0100.07318.94
5.4.190.0130.04718.98
5.4.180.0100.05318.93
5.4.170.0030.05718.83
5.4.160.0030.05718.73
5.4.150.0070.08018.82
5.4.140.0100.07016.46
5.4.130.0200.05716.44
5.4.120.0100.04716.47
5.4.110.0000.07316.57
5.4.100.0070.05316.46
5.4.90.0100.06716.57
5.4.80.0030.06016.47
5.4.70.0130.06016.46
5.4.60.0170.07016.31
5.4.50.0000.07016.48
5.4.40.0030.06016.59
5.4.30.0100.05316.40
5.4.20.0130.04016.37
5.4.10.0100.04716.51
5.4.00.0070.05015.84
5.3.290.0130.04812.80
5.3.280.0170.05314.60
5.3.270.0030.08714.83
5.3.260.0000.06714.44
5.3.250.0070.05314.43
5.3.240.0130.06314.63
5.3.230.0100.07014.43
5.3.220.0100.04714.55
5.3.210.0070.05314.79
5.3.200.0030.05714.64
5.3.190.0130.06014.63
5.3.180.0070.06014.39
5.3.170.0170.06314.55
5.3.160.0070.05014.70
5.3.150.0130.06714.58
5.3.140.0070.06014.72
5.3.130.0030.07314.64
5.3.120.0030.05714.47
5.3.110.0100.05714.61
5.3.100.0100.04713.95
5.3.90.0070.07014.21
5.3.80.0070.05014.10
5.3.70.0130.06014.04
5.3.60.0100.06014.09
5.3.50.0130.05713.86
5.3.40.0100.04314.12
5.3.30.0070.05014.07
5.3.20.0030.05013.78
5.3.10.0100.04013.87
5.3.00.0100.04713.73
5.2.170.0070.05311.22
5.2.160.0000.04711.11
5.2.150.0000.05311.33
5.2.140.0030.05711.31
5.2.130.0030.05311.30
5.2.120.0030.05710.93
5.2.110.0000.04311.01
5.2.100.0000.04311.29
5.2.90.0000.06711.28
5.2.80.0000.04711.08
5.2.70.0100.03311.10
5.2.60.0000.04711.01
5.2.50.0030.05011.20
5.2.40.0030.04710.99
5.2.30.0030.05311.20
5.2.20.0070.04711.04
5.2.10.0000.05710.69
5.2.00.0030.05310.79
5.1.60.0000.03710.06
5.1.50.0030.03310.16
5.1.40.0130.03710.06
5.1.30.0030.04010.39
5.1.20.0100.04710.31
5.1.10.0070.03310.11
5.1.00.0030.04010.16
5.0.50.0030.03710.06
5.0.40.0000.03710.06
5.0.30.0000.05710.06
5.0.20.0070.03010.06
5.0.10.0030.02710.06
5.0.00.0030.04310.06
4.4.90.0030.02010.06
4.4.80.0030.02710.06
4.4.70.0030.02010.06
4.4.60.0000.03010.06
4.4.50.0070.02010.06
4.4.40.0030.03710.06
4.4.30.0000.03010.06
4.4.20.0000.03310.06
4.4.10.0030.03010.06
4.4.00.0030.04010.06
4.3.110.0030.02010.06
4.3.100.0030.02010.06
4.3.90.0030.02010.06
4.3.80.0000.04710.06
4.3.70.0000.02710.06
4.3.60.0030.02310.06
4.3.50.0100.01710.06
4.3.40.0070.03010.06
4.3.30.0000.02710.06
4.3.20.0000.02710.06
4.3.10.0030.02710.06
4.3.00.0130.0206.76