3v4l.org

run code in 200+ php & hhvm versions
<?php class Foo { public $bar = 1; } $f = new Foo; $f->baz = 2; var_dump($f); unset($f->bar, $f->baz); var_dump($f);

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.00.0030.01219.32
7.1.100.0030.00718.16
7.1.70.0000.01016.70
7.1.60.0060.01019.40
7.1.50.0040.02116.68
7.1.00.0070.05722.35
7.0.200.0030.00516.69
7.0.140.0000.07321.92
7.0.110.0100.08319.98
7.0.100.0000.08019.90
7.0.90.0030.09019.84
7.0.80.0100.08020.06
7.0.70.0100.07719.93
7.0.60.0070.08319.93
7.0.50.0000.06720.07
7.0.40.0070.08719.73
7.0.30.0070.07719.66
7.0.20.0070.08019.73
7.0.10.0000.08719.73
7.0.00.0070.08019.72
5.6.280.0000.07721.09
5.6.260.0170.07320.67
5.6.250.0200.07020.66
5.6.240.0070.08720.47
5.6.230.0030.05720.52
5.6.220.0070.04720.70
5.6.210.0070.08020.59
5.6.200.0030.05320.70
5.6.190.0070.08320.62
5.6.180.0030.08320.86
5.6.170.0100.07720.64
5.6.160.0100.07320.70
5.6.150.0030.08020.61
5.6.140.0200.07020.57
5.6.130.0100.07720.58
5.6.120.0070.06020.70
5.6.110.0030.08320.55
5.6.100.0100.08720.54
5.6.90.0170.06320.64
5.6.80.0100.07320.04
5.6.70.0070.07320.02
5.6.60.0030.08719.99
5.6.50.0100.08319.85
5.6.40.0030.08019.96
5.6.30.0100.07320.06
5.6.20.0070.04719.97
5.6.10.0070.08319.96
5.6.00.0030.08719.93
5.5.380.0100.07317.59
5.5.370.0100.07317.70
5.5.360.0130.07317.52
5.5.350.0100.07717.64
5.5.340.0130.06318.25
5.5.330.0170.06717.96
5.5.320.0200.06718.23
5.5.310.0030.08018.13
5.5.300.0200.07318.12
5.5.290.0070.07317.83
5.5.280.0070.08317.94
5.5.270.0070.08018.12
5.5.260.0100.07718.07
5.5.250.0070.08317.86
5.5.240.0130.07017.44
5.5.230.0100.07317.48
5.5.220.0070.07717.43
5.5.210.0030.06717.51
5.5.200.0100.07717.30
5.5.190.0030.08017.28
5.5.180.0030.08717.28
5.5.160.0030.07317.26
5.5.150.0170.07017.41
5.5.140.0070.06317.26
5.5.130.0070.06317.28
5.5.120.0070.03717.18
5.5.110.0070.04017.27
5.5.100.0070.03317.51
5.5.90.0070.03317.16
5.5.80.0030.04017.16
5.5.70.0000.03717.11
5.5.60.0000.04017.38
5.5.50.0070.03317.17
5.5.40.0030.03717.33
5.5.30.0030.03717.36
5.5.20.0070.06317.36
5.5.10.0030.07717.47
5.5.00.0030.08017.16
5.4.450.0070.07319.34
5.4.440.0070.07319.66
5.4.430.0130.07719.45
5.4.420.0070.08019.50
5.4.410.0100.07719.14
5.4.400.0100.08318.97
5.4.390.0130.07719.00
5.4.380.0000.08319.03
5.4.370.0030.06318.98
5.4.360.0030.06019.00
5.4.350.0130.07019.16
5.4.340.0100.07719.09
5.4.320.0130.07319.01
5.4.310.0100.05019.03
5.4.300.0100.05018.94
5.4.290.0130.03019.18
5.4.280.0070.03719.23
5.4.270.0030.03719.00
5.4.260.0030.04018.95
5.4.250.0070.04019.27
5.4.240.0100.03319.02
5.4.230.0070.04019.14
5.4.220.0030.03719.00
5.4.210.0100.03319.17
5.4.200.0000.04018.98
5.4.190.0000.06718.94
5.4.180.0030.07319.02
5.4.170.0070.07719.08
5.4.160.0030.06718.95
5.4.150.0000.04019.01
5.4.140.0070.05016.54
5.4.130.0070.06716.39
5.4.120.0130.05716.50
5.4.110.0070.03316.42
5.4.100.0000.04016.61
5.4.90.0030.03716.26
5.4.80.0030.03316.54
5.4.70.0070.03016.41
5.4.60.0030.04316.45
5.4.50.0030.03316.63
5.4.40.0070.06716.44
5.4.30.0070.06016.63
5.4.20.0070.03016.51
5.4.10.0170.04716.43
5.4.00.0030.03715.84
5.3.290.0100.07014.52
5.3.280.0030.03314.67
5.3.270.0130.06714.62
5.3.260.0030.07714.68
5.3.250.0070.04014.45
5.3.240.0000.04714.57
5.3.230.0030.03714.72
5.3.220.0030.04014.64
5.3.210.0030.07314.70
5.3.200.0070.03014.79
5.3.190.0070.07014.65
5.3.180.0070.03014.70
5.3.170.0030.03714.55
5.3.160.0030.06314.59
5.3.150.0030.03314.78
5.3.140.0070.03014.58
5.3.130.0100.03014.53
5.3.120.0030.04714.66
5.3.110.0030.07314.54
5.3.100.0000.04014.26
5.3.90.0100.03013.87
5.3.80.0070.05314.04
5.3.70.0030.03314.01
5.3.60.0070.03313.85
5.3.50.0000.04014.02
5.3.40.0100.03313.88
5.3.30.0100.02714.03
5.3.20.0030.03713.77
5.3.10.0070.03713.64
5.3.00.0030.03713.77
5.2.170.0030.03011.29
5.2.160.0030.03011.27
5.2.150.0070.05011.14
5.2.140.0130.03311.15
5.2.130.0030.05311.07
5.2.120.0030.02711.10
5.2.110.0030.03011.23
5.2.100.0070.02710.95
5.2.90.0100.03311.32
5.2.80.0000.06711.06
5.2.70.0030.03011.14
5.2.60.0070.02711.03
5.2.50.0000.03011.00
5.2.40.0030.02710.98
5.2.30.0030.03010.98
5.2.20.0070.02711.18
5.2.10.0000.02711.09
5.2.00.0030.04710.73
5.1.60.0030.03010.00
5.1.50.0000.02710.07
5.1.40.0000.0309.93
5.1.30.0000.06310.41
5.1.20.0100.04710.43
5.1.10.0070.05310.14
5.1.00.0070.05710.06
5.0.50.0100.0239.73
5.0.40.0100.0279.73
5.0.30.0070.0509.73
5.0.20.0000.0339.73
5.0.10.0070.0409.73
5.0.00.0030.0539.73
4.4.90.0000.0209.73
4.4.80.0000.0179.73
4.4.70.0070.0309.73
4.4.60.0000.0179.73
4.4.50.0070.0239.73
4.4.40.0000.0239.73
4.4.30.0000.0209.73
4.4.20.0000.0379.73
4.4.10.0070.0239.73
4.4.00.0030.0539.73
4.3.110.0070.0139.73
4.3.100.0100.0209.73
4.3.90.0030.0379.73
4.3.80.0100.0479.73
4.3.70.0000.0279.73
4.3.60.0030.0339.73
4.3.50.0100.0279.73
4.3.40.0000.0509.73
4.3.30.0030.0279.73
4.3.20.0030.0379.73
4.3.10.0000.0309.73
4.3.00.0000.0439.73