3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class C { public $fnc; } $o = new C; $o->fnc = function() {}; $o->fnc();

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.10.0150.00016.62
7.3.00.0040.00716.36
7.2.130.0070.00316.76
7.2.120.0000.01316.62
7.2.110.0080.00416.79
7.2.100.0040.00716.42
7.2.90.0060.00616.71
7.2.80.0100.00316.80
7.2.70.0070.00416.78
7.2.60.0060.00916.81
7.2.50.0060.01017.03
7.2.40.0100.00316.75
7.2.30.0080.00816.98
7.2.20.0000.01216.93
7.2.10.0030.00616.84
7.2.00.0070.01018.01
7.1.250.0030.00715.20
7.1.200.0040.00815.72
7.1.100.0000.01418.11
7.1.70.0090.00617.14
7.1.60.0140.00019.46
7.1.50.0200.01334.55
7.1.00.0030.07722.54
7.0.200.0220.00614.74
7.0.140.0030.07321.92
7.0.60.0130.07719.84
7.0.50.0100.07317.83
7.0.40.0030.09320.29
7.0.30.0470.04020.10
7.0.20.0170.04020.25
7.0.10.0030.05720.12
7.0.00.0070.05020.19
5.6.280.0000.07720.89
5.6.210.0100.07720.47
5.6.200.0070.07718.29
5.6.190.0070.08020.50
5.6.180.3830.04020.33
5.6.170.0270.07320.52
5.6.160.0100.08020.54
5.6.150.0070.06018.14
5.6.140.0200.07018.14
5.6.130.0030.04718.15
5.6.120.0100.07021.02
5.6.110.0030.04020.89
5.6.100.0170.06720.89
5.6.90.0030.04021.07
5.6.80.0130.05020.34
5.6.70.0400.06720.48
5.5.350.0370.05720.49
5.5.340.0100.07717.99
5.5.330.0130.07720.28
5.5.320.0130.05320.32
5.5.310.0300.05320.30
5.5.300.0000.05718.07
5.5.290.0100.07718.08
5.5.280.0030.06020.87
5.5.270.0030.04720.77
5.5.260.0030.04020.88
5.5.250.0070.09020.68
5.5.240.0330.04320.16
5.4.450.2430.04719.20
5.4.440.2630.04019.47
5.4.430.2570.04319.16
5.4.420.2770.05019.45
5.4.410.2630.04019.42
5.4.400.2370.04019.25
5.4.390.2600.04019.13
5.4.380.2400.03319.24
5.4.370.2700.03319.11
5.4.360.2670.03719.22
5.4.350.2330.03319.09
5.4.340.2700.04018.95
5.4.320.2500.04019.22
5.4.310.2600.04018.84
5.4.300.2400.03719.16
5.4.290.2570.04018.99
5.4.280.2730.03719.16
5.4.270.2770.03319.16
5.4.260.2830.03318.84
5.4.250.2600.03719.14
5.4.240.3000.04719.08
5.4.230.2430.03718.83
5.4.220.2430.04018.98
5.4.210.2530.03319.09
5.4.200.2430.04019.21
5.4.190.2470.03319.30
5.4.180.2530.04019.21
5.4.170.2600.03719.25
5.4.160.2470.04319.04
5.4.150.2530.03318.97
5.4.140.2670.03716.42
5.4.130.2400.03716.33
5.4.120.2630.03316.33
5.4.110.3000.04316.30
5.4.100.2630.03316.58
5.4.90.2600.04016.28
5.4.80.2700.03716.52
5.4.70.2700.03716.59
5.4.60.2770.03016.54
5.4.50.2670.04016.42
5.4.40.2430.03016.54
5.4.30.2100.03316.39
5.4.20.2430.02716.35
5.4.10.2400.03716.23
5.4.00.2430.03015.95
5.3.290.2470.02714.80
5.3.280.2700.04014.67
5.3.270.2470.03714.69
5.3.260.2700.02714.57
5.3.250.2370.03714.61
5.3.240.2530.03314.75
5.3.230.2570.04014.50
5.3.220.2400.03314.47
5.3.210.2430.03714.68
5.3.200.2670.04014.53
5.3.190.2430.03314.53
5.3.180.2770.04014.53
5.3.170.2800.04014.48
5.3.160.2870.03714.56
5.3.150.2700.04314.53
5.3.140.2600.04314.77
5.3.130.2970.03314.54
5.3.120.2670.04014.55
5.3.110.2400.04014.62
5.3.100.2770.03714.11
5.3.90.2600.03313.93
5.3.80.2900.03713.93
5.3.70.2600.04313.93
5.3.60.2730.03713.91
5.3.50.2600.03313.88
5.3.40.2470.04013.96
5.3.30.2700.03713.88
5.3.20.2600.03013.84
5.3.10.2500.03713.68
5.3.00.2330.03313.54
5.2.170.2200.02711.26
5.2.160.2400.03711.07
5.2.150.2100.02311.23
5.2.140.2100.03011.21
5.2.130.2070.02711.00
5.2.120.2200.03311.07
5.2.110.2000.03311.10
5.2.100.2070.02311.00
5.2.90.2070.02711.02
5.2.80.2070.03311.02
5.2.70.2430.03311.20
5.2.60.2230.03011.27
5.2.50.2200.03010.94
5.2.40.1800.02711.07
5.2.30.2000.03011.04
5.2.20.1400.02710.88
5.2.10.1570.03310.97
5.2.00.1770.03010.61
5.1.60.1900.0279.98
5.1.50.1900.0239.92
5.1.40.1870.02710.05
5.1.30.1830.02710.29
5.1.20.1870.02710.35
5.1.10.1830.0309.96
5.1.00.1700.0209.95
5.0.50.0670.0178.44
5.0.40.0800.0208.49
5.0.30.0800.0308.15
5.0.20.0970.0208.38
5.0.10.0630.0178.18
5.0.00.0830.0378.05
4.4.90.0830.0137.44
4.4.80.0800.0177.44
4.4.70.0600.0177.44
4.4.60.0800.0137.44
4.4.50.0870.0137.44
4.4.40.0800.0237.44
4.4.30.0670.0107.44
4.4.20.0930.0207.44
4.4.10.0800.0177.44
4.4.00.0800.0277.44
4.3.110.0900.0177.44
4.3.100.0830.0137.44
4.3.90.0830.0137.44
4.3.80.0900.0307.44
4.3.70.0800.0137.44
4.3.60.0630.0137.44
4.3.50.0730.0107.44
4.3.40.0830.0207.44
4.3.30.0230.0137.44
4.3.20.0270.0177.44
4.3.10.0400.0177.44
4.3.00.0430.0107.44