3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo { private $bar = 'something'; } $foo = new Foo(); var_dump($foo->bar);

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.60.0040.01116.82
7.2.00.0070.01019.45
7.1.200.0030.01015.71
7.1.100.0880.00715.64
7.1.70.0000.00917.07
7.1.60.0040.01519.40
7.1.50.0100.01316.86
7.1.00.0100.07022.48
7.0.200.0000.00716.63
7.0.140.0070.06722.07
7.0.120.0030.06322.11
7.0.60.0070.08020.02
7.0.50.0030.04017.86
7.0.40.0170.08019.98
7.0.30.0200.04320.06
7.0.20.0330.06320.23
7.0.10.0200.04020.05
7.0.00.0000.04720.06
5.6.280.0030.07321.10
5.6.210.0100.06020.70
5.6.200.0030.04018.16
5.6.190.0070.08320.46
5.6.180.0130.04320.52
5.6.170.0230.04320.38
5.6.160.0100.08020.43
5.6.150.0030.04018.19
5.6.140.0100.03318.19
5.6.130.0070.04718.19
5.6.120.0100.07321.03
5.6.110.0030.04021.13
5.6.100.0100.08021.11
5.6.90.0100.08720.93
5.6.80.0070.08320.38
5.6.70.0230.08020.58
5.5.350.0000.08020.41
5.5.340.0070.06318.04
5.5.330.0130.04720.23
5.5.320.0200.03720.30
5.5.310.0270.08020.27
5.5.300.0030.08017.95
5.5.290.0170.06718.07
5.5.280.0170.02720.68
5.5.270.0000.04320.76
5.5.260.0070.03720.92
5.5.250.0100.07320.68
5.5.240.0000.09020.16
5.4.450.0370.05719.19
5.4.440.0330.07719.39
5.4.430.0770.04019.29
5.4.420.0600.04319.54
5.4.410.0530.05019.03
5.4.400.0730.03019.08
5.4.390.0700.04019.06
5.4.380.0600.03319.02
5.4.370.0900.03719.32
5.4.360.0330.04319.25
5.4.350.0370.03018.97
5.4.340.0600.04318.98
5.4.320.0930.03019.16
5.4.310.0300.04018.86
5.4.300.0800.04018.86
5.4.290.0500.04319.22
5.4.280.0630.05319.06
5.4.270.0430.04019.13
5.4.260.0370.04719.31
5.4.250.0770.04319.16
5.4.240.0870.03718.85
5.4.230.0630.04018.85
5.4.220.0570.03019.30
5.4.210.0770.03019.22
5.4.200.0700.01719.21
5.4.190.0770.04018.82
5.4.180.0670.04019.16
5.4.170.0670.03719.06
5.4.160.0470.04019.12
5.4.150.0570.05319.11
5.4.140.0500.03316.51
5.4.130.0700.03716.34
5.4.120.0600.03716.33
5.4.110.0600.04316.52
5.4.100.0600.03316.54
5.4.90.0730.03016.51
5.4.80.0630.03316.21
5.4.70.0870.02716.42
5.4.60.0500.03716.35
5.4.50.0770.03316.55
5.4.40.0300.04016.53
5.4.30.0400.04316.49
5.4.20.0400.05016.51
5.4.10.0670.04016.48
5.4.00.0700.02315.76
5.3.290.0470.05015.51
5.3.280.0870.02715.51
5.3.270.0600.04015.51
5.3.260.0570.04015.51
5.3.250.0500.03715.50
5.3.240.0670.04315.50
5.3.230.0700.04015.50
5.3.220.0630.04715.50
5.3.210.0230.04715.50
5.3.200.0570.04315.50
5.3.190.0370.03715.50
5.3.180.0430.03315.50
5.3.170.0370.04715.50
5.3.160.0930.02715.36
5.3.150.0400.07015.36
5.3.140.0600.04015.36
5.3.130.0830.05015.36
5.3.120.0830.04315.36
5.3.110.0400.04315.36
5.3.100.0370.03715.36
5.3.90.0700.03715.36
5.3.80.0670.03315.36
5.3.70.0570.03315.36
5.3.60.0530.03715.36
5.3.50.0370.02715.36
5.3.40.0530.03715.77
5.3.30.0770.04015.77
5.3.20.0670.03315.77
5.3.10.0470.04315.77
5.3.00.0900.03315.77
5.2.170.0530.05715.77
5.2.160.0470.06315.77
5.2.150.0730.02715.77
5.2.140.0970.02315.77
5.2.130.0130.03015.77
5.2.120.0270.04015.77
5.2.110.0500.02715.77
5.2.100.0700.02315.77
5.2.90.0630.02315.77
5.2.80.0630.02315.77
5.2.70.0400.04015.77
5.2.60.0370.04015.77
5.2.50.0630.03315.77
5.2.40.0500.04015.77
5.2.30.0530.03015.77
5.2.20.0800.02315.77
5.2.10.0530.03315.77
5.2.00.0530.03315.77
5.1.60.0270.03315.77
5.1.50.0330.02015.77
5.1.40.0000.02015.77
5.1.30.0530.02315.77
5.1.20.0330.03015.77
5.1.10.0330.03015.77
5.1.00.0470.02715.77
5.0.50.0200.02315.77
5.0.40.0230.02715.77
5.0.30.0030.02315.77
5.0.20.0200.01315.77
5.0.10.0200.01715.77
5.0.00.0300.02315.77
4.4.90.0230.02015.77
4.4.80.0270.02015.77
4.4.70.0370.01715.77
4.4.60.0400.01315.77
4.4.50.0300.01315.77
4.4.40.0200.03315.77
4.4.30.0370.01315.77
4.4.20.0130.01315.77
4.4.10.0330.01015.77
4.4.00.0270.02015.77
4.3.110.0300.01315.77
4.3.100.0000.01315.77
4.3.90.0170.01715.77
4.3.80.0100.02315.77
4.3.70.0100.01715.77
4.3.60.0200.01715.77
4.3.50.0100.02015.77
4.3.40.0000.02715.77
4.3.30.0100.01315.77
4.3.20.0000.02015.77
4.3.10.0130.01015.77
4.3.00.0100.01315.77