3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php define("\\\\a", 20); var_dump(constant("\\\\a"));
based on fdlIO

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.0200.00519.19
7.1.100.0030.01017.83
7.1.70.0000.00816.96
7.1.60.0100.01619.50
7.1.50.0040.01816.62
7.1.00.0130.06322.40
7.0.200.0000.00716.67
7.0.140.0070.06722.09
7.0.60.0000.08720.02
7.0.50.0100.07717.90
7.0.40.0000.04720.27
7.0.30.0300.04020.17
7.0.20.0370.08020.16
7.0.10.0170.04019.96
7.0.00.0030.08720.17
5.6.280.0000.07721.10
5.6.210.0100.07720.72
5.6.200.0030.04318.19
5.6.190.0070.08720.57
5.6.180.0500.07320.45
5.6.170.0370.06720.51
5.6.160.0100.04720.63
5.6.150.0000.04718.11
5.6.140.0030.09018.14
5.6.130.0130.07718.06
5.6.120.0100.08020.99
5.6.110.0030.08321.13
5.6.100.0030.05020.97
5.6.90.0100.03721.01
5.6.80.0030.08720.27
5.5.350.0270.06020.36
5.5.340.0130.05017.88
5.5.330.0100.08320.47
5.5.320.0230.08320.34
5.5.310.0430.07720.41
5.5.300.0070.08017.96
5.5.290.0100.05017.90
5.5.280.0100.07320.84
5.5.270.0130.07720.74
5.5.260.0070.04020.79
5.5.250.0030.04720.54
5.5.240.0070.07320.32
5.4.450.0600.06319.23
5.4.440.0100.05719.13
5.4.430.0630.05319.47
5.4.420.0430.05719.46
5.4.410.0130.04719.50
5.4.400.0300.05018.52
5.4.390.0170.06318.74
5.4.380.0230.05018.49
5.4.370.0230.05018.68
5.4.360.0230.05018.59
5.4.350.0200.06018.45
5.4.340.0370.04318.67
5.4.320.0130.07318.62
5.4.310.0170.06018.70
5.4.300.0130.06318.46
5.4.290.0170.06018.68
5.4.280.0230.07718.70
5.4.270.0200.05718.57
5.4.260.0230.05318.55
5.4.250.0170.06318.70
5.4.240.0270.05318.48
5.4.230.0300.06018.67
5.4.220.0300.07318.53
5.4.210.0200.05018.50
5.4.200.0230.05016.48
5.4.190.0230.05718.55
5.4.180.0300.05718.64
5.4.170.0330.07018.61
5.4.160.0270.05018.60
5.4.150.0270.05318.43
5.4.140.0330.05716.23
5.4.130.0370.04316.04
5.4.120.0230.05716.14
5.4.110.0200.05016.05
5.4.100.0130.06316.29
5.4.90.0170.06016.26
5.4.80.0300.04716.14
5.4.70.0170.06716.15
5.4.60.0170.06015.99
5.4.50.0270.04316.22
5.4.40.0200.05716.13
5.4.30.0100.06316.28
5.4.20.0170.06016.22
5.4.10.0270.05315.97
5.4.00.0230.05015.62
5.3.290.0330.05314.57
5.3.280.0230.07014.59
5.3.270.0430.04314.56
5.3.260.0300.06714.59
5.3.250.0130.06014.60
5.3.240.0230.05014.61
5.3.230.0230.06314.61
5.3.220.0270.05714.47
5.3.210.0270.04714.47
5.3.200.0170.06014.58
5.3.190.0230.04714.54
5.3.180.0170.05314.45
5.3.170.0200.05014.49
5.3.160.0230.05314.54
5.3.150.0170.05714.47
5.3.140.0230.04714.52
5.3.130.0170.05714.54
5.3.120.0270.04714.62
5.3.110.0300.05014.63
5.3.100.0200.05714.11
5.3.90.0230.06014.01
5.3.80.0170.06013.93
5.3.70.0200.05013.99
5.3.60.0270.04713.98
5.3.50.0200.05013.92
5.3.40.0130.07713.90
5.3.30.0230.05313.93
5.3.20.0300.04713.76
5.3.10.0270.04013.56
5.3.00.0300.03713.59
5.2.170.0200.04011.10
5.2.160.0200.04011.17
5.2.150.0070.05011.29
5.2.140.0130.04711.10
5.2.130.0270.04011.11
5.2.120.0330.04311.05
5.2.110.0170.04711.14
5.2.100.0200.03311.10
5.2.90.0130.05011.14
5.2.80.0230.05011.11
5.2.70.0270.04711.07
5.2.60.0270.04711.00
5.2.50.0200.05310.97
5.2.40.0070.04711.03
5.2.30.0200.04710.91
5.2.20.0200.05010.98
5.2.10.0130.04010.88
5.2.00.0170.04010.80
5.1.60.0170.0439.99
5.1.50.0170.0309.97
5.1.40.0230.0409.98
5.1.30.0170.03310.41
5.1.20.0130.04310.44
5.1.10.0130.03310.07
5.1.00.0200.03010.02
5.0.50.0200.0308.57
5.0.40.0170.0338.38
5.0.30.0130.0538.23
5.0.20.0000.0378.32
5.0.10.0070.0308.18
5.0.00.0170.0478.27
4.4.90.0070.0275.89
4.4.80.0030.0235.89
4.4.70.0230.0135.79
4.4.60.0100.0205.91
4.4.50.0070.0235.91
4.4.40.0100.0335.91
4.4.30.0130.0175.80
4.4.20.0070.0235.96
4.4.10.0070.0275.97
4.4.00.0100.0335.87
4.3.110.0130.0205.74
4.3.100.0130.0205.81
4.3.90.0100.0205.80
4.3.80.0170.0275.86
4.3.70.0100.0305.78
4.3.60.0130.0175.89
4.3.50.0030.0305.82
4.3.40.0070.0375.77
4.3.30.0030.0274.54
4.3.20.0070.0204.51
4.3.10.0000.0274.49
4.3.00.0130.0207.12