3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class aaa{ private $a; private $b; function add() { echo '123123'; } } $obj=new aaa(); $this->add(); ?>

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.0160.00398.97
7.3.0rc30.0160.00316.48
7.3.0beta10.0040.00712.53
7.3.0alpha10.0030.00712.59
7.2.60.0030.00816.77
7.2.00.0030.00919.47
7.1.200.0070.00715.31
7.1.100.0030.01317.47
7.1.70.0060.00616.89
7.1.60.0140.01019.32
7.1.50.0110.01116.65
7.1.00.0100.07022.44
7.0.200.0110.00416.77
7.0.140.0000.07022.09
7.0.120.0030.07022.04
7.0.110.0100.07021.94
7.0.100.0000.07722.03
7.0.90.0030.07722.14
7.0.80.0000.05722.07
7.0.70.0030.07322.20
7.0.60.0030.07322.14
7.0.50.0030.07322.01
7.0.40.0030.07322.14
7.0.30.0000.06322.07
7.0.20.0070.06722.01
7.0.10.0030.07022.02
7.0.00.0130.06322.02
5.6.280.0030.07321.08
5.6.260.0130.06321.07
5.6.250.0030.07320.94
5.6.240.0030.06321.08
5.6.230.0030.05720.83
5.6.220.0100.06720.86
5.6.210.0070.06021.02
5.6.200.0000.08020.94
5.6.190.0070.07320.98
5.6.180.0070.06320.80
5.6.170.0100.06320.83
5.6.160.0070.07020.80
5.6.150.0030.07021.05
5.6.140.0070.06721.06
5.6.130.0070.07021.04
5.6.120.0000.07020.75
5.6.110.0030.07020.84
5.6.100.0000.08021.05
5.6.90.0000.06321.00
5.6.80.0070.06320.46
5.6.70.0030.07020.38
5.6.60.0000.05020.44
5.6.50.0030.04320.22
5.6.40.0030.07020.16
5.6.30.0100.06720.30
5.6.20.0100.06720.21
5.6.10.0100.06020.41
5.6.00.0030.06320.38
5.5.380.0070.06717.60
5.5.370.0000.06317.72
5.5.360.0070.07017.55
5.5.350.0000.06317.51
5.5.340.0030.07017.93
5.5.330.0030.07018.10
5.5.320.0070.06718.24
5.5.310.0070.06018.07
5.5.300.0070.06017.95
5.5.290.0030.07317.93
5.5.280.0000.06718.10
5.5.270.0070.07317.90
5.5.260.0100.07018.11
5.5.250.0030.07318.04
5.5.240.0030.07017.31
5.5.230.0000.07317.48
5.5.220.0100.06317.43
5.5.210.0000.04717.21
5.5.200.0000.07017.59
5.5.190.0070.06717.18
5.5.180.0070.06717.57
5.5.160.0030.06017.44
5.5.150.0070.06717.44
5.5.140.0000.08017.18
5.5.130.0000.07017.43
5.5.120.0000.07017.45
5.5.110.0000.06017.43
5.5.100.0030.06317.18
5.5.90.0030.05717.34
5.5.80.0070.05317.21
5.5.70.0000.05017.33
5.5.60.0030.06717.38
5.5.50.0000.06017.47
5.5.40.0030.06317.15
5.5.30.0030.06717.15
5.5.20.0030.07017.32
5.5.10.0000.07317.12
5.5.00.0000.07317.37
5.4.450.0030.06719.50
5.4.440.0100.06719.32
5.4.430.0000.07319.50
5.4.420.0000.07319.56
5.4.410.0070.06719.41
5.4.400.0000.07019.00
5.4.390.0030.07019.01
5.4.380.0030.06019.14
5.4.370.0000.04719.25
5.4.360.0070.06019.18
5.4.350.0070.06019.30
5.4.340.0130.06019.01
5.4.320.0070.06719.00
5.4.310.0100.05719.03
5.4.300.0070.06319.13
5.4.290.0030.05319.01
5.4.280.0030.06719.32
5.4.270.0000.06718.98
5.4.260.0000.06018.97
5.4.250.0000.07019.00
5.4.240.0070.05319.23
5.4.230.0000.06718.99
5.4.220.0000.07318.99
5.4.210.0030.06718.99
5.4.200.0030.06719.16
5.4.190.0000.07019.29
5.4.180.0030.06719.01
5.4.170.0030.06718.93
5.4.160.0000.07019.00
5.4.150.0100.06319.15
5.4.140.0030.06716.35
5.4.130.0000.06716.62
5.4.120.0030.06316.55
5.4.110.0070.05716.55
5.4.100.0000.05316.64
5.4.90.0030.05316.42
5.4.80.0070.05316.57
5.4.70.0000.06016.55
5.4.60.0030.06716.23
5.4.50.0070.06016.55
5.4.40.0030.06316.44
5.4.30.0070.06016.47
5.4.20.0000.06716.38
5.4.10.0030.06716.28
5.4.00.0070.06015.83
5.3.290.0070.07014.75
5.3.280.0070.06314.57
5.3.270.0030.07014.73
5.3.260.0000.07314.59
5.3.250.0030.06714.62
5.3.240.0030.06714.59
5.3.230.0070.06314.68
5.3.220.0000.07014.79
5.3.210.0030.06714.52
5.3.200.0000.05314.55
5.3.190.0070.06314.56
5.3.180.0030.06714.70
5.3.170.0100.06014.59
5.3.160.0000.07014.57
5.3.150.0030.06714.68
5.3.140.0000.07014.69
5.3.130.0030.06714.69
5.3.120.0000.07014.58
5.3.110.0030.07014.56
5.3.100.0000.06314.04
5.3.90.0030.06314.10
5.3.80.0030.06014.24
5.3.70.0000.06713.87
5.3.60.0030.06314.14
5.3.50.0000.06013.98
5.3.40.0000.06713.90
5.3.30.0070.06013.75
5.3.20.0030.05313.70
5.3.10.0000.06313.67
5.3.00.0000.05713.60
5.2.170.0070.05011.15
5.2.160.0000.05711.28
5.2.150.0000.05711.28
5.2.140.0030.05311.15
5.2.130.0030.05311.09
5.2.120.0070.05011.17
5.2.110.0000.05311.09
5.2.100.0000.05711.07
5.2.90.0070.05011.11
5.2.80.0000.05311.11
5.2.70.0000.05711.16
5.2.60.0030.05311.05
5.2.50.0070.05010.88
5.2.40.0030.05311.02
5.2.30.0000.05011.20
5.2.20.0030.05011.05
5.2.10.0030.05010.85
5.2.00.0030.05310.94
5.1.60.0030.04010.02
5.1.50.0070.04010.02
5.1.40.0000.04710.14
5.1.30.0000.05010.36
5.1.20.0030.04710.43
5.1.10.0030.04310.22
5.1.00.0030.04010.24
5.0.50.0030.03710.02
5.0.40.0030.02710.02
5.0.30.0030.05310.02
5.0.20.0000.04010.02
5.0.10.0000.04010.02
5.0.00.0000.05010.02
4.4.90.0000.02310.02
4.4.80.0000.03010.02
4.4.70.0030.02310.02
4.4.60.0000.03010.02
4.4.50.0030.02710.02
4.4.40.0030.04710.02
4.4.30.0000.03010.02
4.4.20.0030.03010.02
4.4.10.0000.03010.02
4.4.00.0030.03710.02
4.3.110.0000.03010.02
4.3.100.0030.02710.02
4.3.90.0030.02310.02
4.3.80.0000.04710.02
4.3.70.0030.02710.02
4.3.60.0000.03010.02
4.3.50.0030.03010.02
4.3.40.0000.04710.02
4.3.30.0070.02710.02
4.3.20.0030.02710.02
4.3.10.0100.02310.02
4.3.00.0000.03010.02