3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Kitchen { private $yummy = 'cake'; } $kitchen = new Kitchen();

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.0120.01298.97
7.3.0rc30.0270.01216.01
7.3.0beta10.0030.00712.60
7.3.0alpha10.0000.00412.34
7.2.60.0060.00616.65
7.2.00.0060.00919.34
7.1.200.0040.01115.47
7.1.100.0030.00917.53
7.1.70.0000.00816.93
7.1.60.0070.01719.40
7.1.50.0070.01316.74
7.1.00.0000.04022.29
7.0.200.0040.00716.49
7.0.140.0070.07322.07
7.0.120.0000.03322.05
7.0.60.0100.08020.02
7.0.50.0100.04017.85
7.0.40.0070.05317.78
7.0.30.0070.05317.69
7.0.20.0070.04717.86
7.0.10.0100.07017.71
7.0.00.0070.08017.75
5.6.280.0030.07320.90
5.6.210.0200.06720.62
5.6.200.0100.07318.29
5.6.190.0030.05018.15
5.6.180.0100.06318.23
5.6.170.0100.07318.23
5.6.160.0000.06718.25
5.6.150.0100.05718.29
5.6.140.0030.04318.14
5.6.130.0070.08018.19
5.6.120.0070.05318.27
5.6.110.0000.06718.17
5.6.100.0200.07318.18
5.6.90.0130.03318.21
5.6.80.0100.07317.57
5.6.70.0000.05317.61
5.6.60.0070.04017.56
5.6.50.0100.05717.57
5.6.40.0030.05717.50
5.6.30.0070.05317.54
5.6.20.0030.08717.51
5.6.10.0130.07317.64
5.6.00.0070.08017.63
5.5.350.0070.07320.46
5.5.340.0070.03718.07
5.5.330.0000.05717.96
5.5.320.0070.04718.10
5.5.310.0030.08317.98
5.5.300.0030.05718.01
5.5.290.0070.04017.96
5.5.280.0130.07318.04
5.5.270.0000.05018.07
5.5.260.0070.05018.03
5.5.250.0070.03717.79
5.5.240.0030.04717.40
5.5.230.0030.04317.29
5.5.220.0070.04717.36
5.5.210.0100.07317.43
5.5.200.0030.03717.32
5.5.190.0030.06017.43
5.5.180.0070.08017.29
5.5.160.0070.08017.36
5.5.150.0030.06017.30
5.5.140.0100.07317.32
5.5.130.0130.06017.30
5.5.120.0070.05017.29
5.5.110.0070.08317.41
5.5.100.0030.04017.30
5.5.90.0070.07317.31
5.5.80.0170.06017.23
5.5.70.0170.06717.27
5.5.60.0170.06017.27
5.5.50.0030.07017.19
5.5.40.0070.03717.16
5.5.30.0070.07017.32
5.5.20.0100.06317.22
5.5.10.0130.06717.25
5.5.00.0100.06717.22
5.4.450.0130.07319.38
5.4.440.0130.07719.33
5.4.430.0030.05019.49
5.4.420.0070.03719.59
5.4.410.0000.04319.29
5.4.400.0000.07719.13
5.4.390.0100.03718.95
5.4.380.0100.07319.01
5.4.370.0100.06019.05
5.4.360.0000.04319.27
5.4.350.0030.07019.03
5.4.340.0100.07318.96
5.4.320.0030.08318.98
5.4.310.0100.04319.10
5.4.300.0030.06019.09
5.4.290.0070.07719.12
5.4.280.0130.07019.04
5.4.270.0070.04319.04
5.4.260.0100.05019.11
5.4.250.0100.04719.00
5.4.240.0070.07719.02
5.4.230.0030.04019.02
5.4.220.0070.07019.09
5.4.210.0070.07719.12
5.4.200.0030.04719.04
5.4.190.0070.06719.13
5.4.180.0130.06019.09
5.4.170.0130.05719.04
5.4.160.0100.06718.96
5.4.150.0070.04719.25
5.4.140.0000.08016.41
5.4.130.0070.06316.41
5.4.120.0070.07716.34
5.4.110.0070.04316.34
5.4.100.0070.03716.41
5.4.90.0030.04016.45
5.4.80.0130.06316.41
5.4.70.0030.06716.47
5.4.60.0100.04716.36
5.4.50.0130.06316.52
5.4.40.0100.06316.44
5.4.30.0030.05016.45
5.4.20.0070.06016.55
5.4.10.0100.07016.51
5.4.00.0070.06015.83
5.3.290.0070.05314.67
5.3.280.0030.07714.80
5.3.270.0030.07714.81
5.3.260.0030.05014.80
5.3.250.0070.07314.63
5.3.240.0070.07714.66
5.3.230.0100.06314.54
5.3.220.0100.04014.62
5.3.210.0070.03714.61
5.3.200.0100.03314.57
5.3.190.0100.05714.57
5.3.180.0070.03714.58
5.3.170.0030.04314.59
5.3.160.0230.05314.57
5.3.150.0030.04714.60
5.3.140.0070.04714.58
5.3.130.0030.07714.38
5.3.120.0100.07714.63
5.3.110.0170.06314.57
5.3.100.0030.04314.05
5.3.90.0130.02714.02
5.3.80.0030.03714.04
5.3.70.0100.03314.03
5.3.60.0070.04014.04
5.3.50.0070.03714.04
5.3.40.0070.03314.00
5.3.30.0070.03013.94
5.3.20.0030.03313.71
5.3.10.0030.03313.63
5.3.00.0030.03313.52
5.2.170.0030.03711.15
5.2.160.0030.02711.10
5.2.150.0030.02711.04
5.2.140.0030.03010.98
5.2.130.0000.03011.13
5.2.120.0100.02711.00
5.2.110.0000.03011.08
5.2.100.0000.03011.11
5.2.90.0030.03010.94
5.2.80.0000.03011.05
5.2.70.0030.02711.12
5.2.60.0070.02311.03
5.2.50.0070.02711.08
5.2.40.0000.03011.03
5.2.30.0030.03711.02
5.2.20.0030.02710.99
5.2.10.0030.02710.95
5.2.00.0000.03010.81
5.1.60.0000.02710.05
5.1.50.0000.0239.96
5.1.40.0000.0239.93
5.1.30.0000.02710.29
5.1.20.0000.02710.37
5.1.10.0030.02310.09
5.1.00.0000.02710.11
5.0.50.0000.0208.72
5.0.40.0000.0208.72
5.0.30.0070.0238.72
5.0.20.0030.0178.72
5.0.10.0000.0208.72
5.0.00.0000.0338.72
4.4.90.0000.0178.72
4.4.80.0000.0178.72
4.4.70.0000.0178.72
4.4.60.0000.0178.72
4.4.50.0000.0178.72
4.4.40.0000.0238.72
4.4.30.0000.0178.72
4.4.20.0000.0178.72
4.4.10.0030.0138.72
4.4.00.0000.0238.72
4.3.110.0000.0138.72
4.3.100.0030.0138.72
4.3.90.0000.0178.72
4.3.80.0000.0238.72
4.3.70.0000.0138.72
4.3.60.0000.0138.72
4.3.50.0030.0138.72
4.3.40.0000.0238.72
4.3.30.0000.0178.72
4.3.20.0000.0178.72
4.3.10.0000.0138.72
4.3.00.0000.0138.72