3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace My; function f() {} trait T {} class C {} interface I {} const CON = 10; $a = 11; var_dump(\WTF::class, f::class, T::class, C::class, I::class, CON::class);
based on kigqm

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.0110.01119.22
7.1.100.0100.00317.98
7.1.70.0000.00916.90
7.1.60.0070.01719.46
7.1.50.0210.01134.76
7.1.00.0070.07322.41
7.0.200.0000.00716.66
7.0.140.0000.05022.07
7.0.70.4970.04719.94
7.0.60.0070.05720.02
7.0.50.0200.06717.85
7.0.40.0100.07720.02
7.0.30.0170.07320.06
7.0.20.0270.08720.23
7.0.10.0370.07320.16
7.0.00.0070.07720.26
5.6.280.0000.07721.09
5.6.210.0070.08020.76
5.6.200.0070.04018.16
5.6.190.0100.08320.63
5.6.180.0070.05020.65
5.6.170.0270.05020.43
5.6.160.0100.07720.66
5.6.150.0030.07718.25
5.6.140.0030.07018.21
5.6.130.0100.06718.24
5.6.120.0030.04720.90
5.6.110.0130.08721.12
5.6.100.0100.05021.11
5.6.90.0070.05321.04
5.6.80.0200.05020.50
5.6.70.0230.07020.39
5.5.350.0070.08320.39
5.5.340.0030.08018.07
5.5.330.0070.08720.47
5.5.320.0000.08020.13
5.5.310.0200.07320.34
5.5.300.0100.05718.02
5.5.290.0070.07018.04
5.5.280.0100.08020.88
5.5.270.0030.05720.74
5.5.260.0200.08020.69
5.5.250.0070.03720.78
5.5.240.0100.07720.19
5.4.450.0670.05319.50
5.4.440.0230.05019.34
5.4.430.0130.05719.58
5.4.420.0170.06719.45
5.4.410.0230.05019.41
5.4.400.0200.07018.81
5.4.390.0030.07018.73
5.4.380.0200.06018.57
5.4.370.0230.07018.52
5.4.360.0030.06718.75
5.4.350.0230.07018.47
5.4.340.0230.06718.59
5.4.320.0270.05318.75
5.4.310.0270.05018.61
5.4.300.0200.04718.74
5.4.290.0230.04718.80
5.4.280.0070.06018.74
5.4.270.0130.05718.70
5.4.260.0070.06018.61
5.4.250.0200.05018.52
5.4.240.0030.06318.74
5.4.230.0130.05318.55
5.4.220.0100.06018.70
5.4.210.0130.05718.52
5.4.200.0130.05016.54
5.4.190.0130.05318.57
5.4.180.0200.05018.77
5.4.170.0130.05318.75
5.4.160.0230.04318.75
5.4.150.0300.04018.67
5.4.140.0130.05016.34
5.4.130.0170.04716.23
5.4.120.0170.04716.45
5.4.110.0170.05016.29
5.4.100.0130.05316.46
5.4.90.0070.05716.30
5.4.80.0200.04316.24
5.4.70.0130.05016.43
5.4.60.0100.05316.26
5.4.50.0300.04716.20
5.4.40.0100.05316.29
5.4.30.0270.04316.24
5.4.20.0200.04716.27
5.4.10.0100.05316.26
5.4.00.0230.04015.64
5.3.290.0100.06014.80
5.3.280.0230.04314.80
5.3.270.0200.05014.64
5.3.260.0070.06314.63
5.3.250.0200.04714.63
5.3.240.0330.03714.77
5.3.230.0170.05714.70
5.3.220.0100.05714.55
5.3.210.0170.06714.70
5.3.200.0100.05314.70
5.3.190.0170.05014.77
5.3.180.0200.05014.61
5.3.170.0230.04014.66
5.3.160.0200.05014.61
5.3.150.0100.05714.66
5.3.140.0100.05714.66
5.3.130.0170.05014.56
5.3.120.0330.04314.57
5.3.110.0100.07314.54
5.3.100.0030.06314.13
5.3.90.0070.06314.05
5.3.80.0200.04314.04
5.3.70.0170.05014.12
5.3.60.0070.06014.03
5.3.50.0130.05314.02
5.3.40.0130.05014.02
5.3.30.0170.05313.95
5.3.20.0200.04313.71
5.3.10.0100.05013.75
5.3.00.0200.04313.82
5.2.170.0100.04711.20
5.2.160.0130.04011.11
5.2.150.0100.04311.30
5.2.140.0130.04011.21
5.2.130.0170.03311.02
5.2.120.0130.03711.05
5.2.110.0100.04011.07
5.2.100.0070.04711.02
5.2.90.0130.03711.06
5.2.80.0130.04011.05
5.2.70.0230.03011.08
5.2.60.0070.04711.10
5.2.50.0100.04311.16
5.2.40.0130.04011.02
5.2.30.0200.03710.95
5.2.20.0100.04010.92
5.2.10.0100.04010.81
5.2.00.0130.04010.81
5.1.60.0030.0409.99
5.1.50.0070.03710.13
5.1.40.0100.03310.01
5.1.30.0100.03310.30
5.1.20.0100.03310.39
5.1.10.0100.03310.12
5.1.00.0070.03710.08
5.0.50.0000.0338.58
5.0.40.0070.0278.44
5.0.30.0030.0478.22
5.0.20.0100.0238.31
5.0.10.0030.0308.29
5.0.00.0100.0378.18
4.4.90.0030.0235.90
4.4.80.0030.0235.86
4.4.70.0100.0175.94
4.4.60.0170.0105.87
4.4.50.0130.0135.91
4.4.40.0070.0335.87
4.4.30.0100.0175.89
4.4.20.0070.0205.92
4.4.10.0030.0235.89
4.4.00.0100.0305.94
4.3.110.0070.0275.83
4.3.100.0070.0205.77
4.3.90.0030.0235.91
4.3.80.0070.0335.82
4.3.70.0030.0235.81
4.3.60.0070.0205.87
4.3.50.0030.0235.82
4.3.40.0070.0305.77
4.3.30.0030.0204.66
4.3.20.0030.0204.63
4.3.10.0000.0234.52
4.3.00.0100.0207.02