3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(2 & 4);

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.0rc40.0190.00098.97
7.3.0rc30.0170.00816.23
7.3.0beta10.0400.00411.45
7.3.0alpha40.0680.00310.40
7.3.0alpha30.0750.00310.71
7.3.0alpha20.0740.00010.59
7.3.0alpha10.0390.00311.66
7.2.80.0540.00614.62
7.2.70.0470.01014.74
7.2.60.0300.00615.65
7.2.50.1690.00314.89
7.2.40.0610.00314.74
7.2.30.0670.01314.84
7.2.20.0760.00714.90
7.2.10.0530.00314.82
7.2.00.0200.01417.77
7.1.200.0820.00313.66
7.1.190.0780.01013.76
7.1.180.0600.00713.39
7.1.170.0720.00913.42
7.1.160.0580.00013.85
7.1.150.0520.01313.71
7.1.140.0570.00613.50
7.1.130.0470.00313.84
7.1.120.0270.01316.14
7.1.110.0340.01115.79
7.1.100.0320.01115.72
7.1.90.0360.00515.88
7.1.80.0360.00815.79
7.1.70.0340.00415.92
7.1.60.0270.00827.77
7.1.50.0270.01127.71
7.1.40.0280.00827.65
7.1.30.0260.01127.61
7.1.20.0260.01127.68
7.1.10.0130.01015.84
7.1.00.0230.00515.80
7.0.310.0550.00313.18
7.0.300.0490.01013.25
7.0.290.0770.00713.53
7.0.280.0780.00613.23
7.0.270.0610.00313.06
7.0.260.0380.00815.77
7.0.250.0290.01215.46
7.0.240.0330.00615.55
7.0.230.0310.00915.51
7.0.220.0300.01115.65
7.0.210.0290.00614.95
7.0.200.0170.00915.68
7.0.190.0170.00715.60
7.0.180.0330.00715.36
7.0.170.0230.00915.45
7.0.160.0190.00715.49
7.0.150.0140.00915.47
7.0.140.0130.00915.45
7.0.130.0180.00515.57
7.0.120.0170.00815.62
7.0.110.0160.01115.47
7.0.100.0140.01015.48
7.0.90.0180.01415.58
7.0.80.0180.00815.54
7.0.70.0110.00915.50
7.0.60.0180.00515.45
7.0.50.0140.00715.59
7.0.40.0040.01215.56
7.0.30.0170.00815.63
7.0.20.0180.00515.64
7.0.10.0240.00615.47
7.0.00.0220.00315.55
hhvm-3.22.00.1010.22090.08
hhvm-3.21.30.0710.18090.05
hhvm-3.21.00.1340.20390.05
hhvm-3.20.20.1140.20189.79
hhvm-3.19.20.0890.19089.19
hhvm-3.18.50.0770.21288.00
hhvm-3.18.40.0930.20487.74
hhvm-3.17.30.0610.15390.84
hhvm-3.15.40.0650.13390.23
hhvm-3.13.20.0640.157101.16
hhvm-3.12.140.0720.147101.21
hhvm-3.11.10.0610.16493.62
hhvm-3.10.10.0680.13590.49
5.6.300.0050.04318.38
5.6.290.0100.03718.59
5.6.280.0110.03618.63
5.6.270.0080.03918.72
5.6.260.0140.05118.74
5.6.250.0090.04218.54
5.6.240.0080.04618.64
5.6.230.0140.04118.53
5.6.220.0100.04018.57
5.6.210.0110.04118.38
5.6.200.0060.05518.67
5.6.190.0090.04418.57
5.6.180.0130.05218.58
5.6.170.0100.04718.57
5.6.160.0070.04918.58
5.6.150.0110.04518.59
5.6.140.0120.03918.61
5.6.130.0120.05118.66
5.6.120.0130.03118.66
5.6.110.0090.04618.58
5.6.100.0080.04118.69
5.6.90.0080.03518.63
5.6.80.0100.03817.99
5.6.70.0090.03318.19
5.6.60.0130.04318.16
5.6.50.0040.04018.18
5.6.40.0060.04618.22
5.6.30.0060.04418.19
5.6.20.0060.03818.22
5.6.10.0100.04318.10
5.6.00.0110.03518.30
5.5.380.0090.04015.25
5.5.370.0090.03415.25
5.5.360.0130.05015.34
5.5.350.0070.03515.32
5.5.340.0080.04415.55
5.5.330.0090.03615.64
5.5.320.0090.05515.52
5.5.310.0070.04615.60
5.5.300.0090.04015.52
5.5.290.0080.03515.42
5.5.280.0060.04815.63
5.5.270.0080.04315.64
5.5.260.0080.03915.62
5.5.250.0060.05715.46
5.5.240.0050.04115.15
5.5.230.0070.03815.06
5.5.220.0110.03415.09
5.5.210.0060.03715.10
5.5.200.0080.03315.15
5.5.190.0030.03715.13
5.5.180.0090.04915.07
5.5.170.0110.00513.85
5.5.160.0090.03615.03
5.5.150.0040.04115.08
5.5.140.0070.04015.10
5.5.130.0060.03115.17
5.5.120.0050.03715.06
5.5.110.0030.03815.22
5.5.100.0090.03415.06
5.5.90.0090.03915.13
5.5.80.0120.03115.06
5.5.70.0110.03115.07
5.5.60.0080.04015.07
5.5.50.0070.03514.96
5.5.40.0060.03215.08
5.5.30.0060.03514.96
5.5.20.0070.03415.05
5.5.10.0080.03315.01
5.5.00.0060.03415.00
5.4.450.0110.03716.37
5.4.440.0080.03916.48
5.4.430.0080.04816.38
5.4.420.0090.04216.50
5.4.410.0050.04916.28
5.4.400.0060.03416.29
5.4.390.0090.05016.24
5.4.380.0080.03316.31
5.4.370.0070.04116.31
5.4.360.0090.03216.16
5.4.350.0070.04316.27
5.4.340.0120.04616.10
5.4.330.0000.00910.52
5.4.320.0060.03816.30
5.4.310.0050.03616.28
5.4.300.0070.03716.22
5.4.290.0090.03516.29
5.4.280.0080.03816.27
5.4.270.0070.03816.26
5.4.260.0120.03816.31
5.4.250.0100.03616.23
5.4.240.0110.02816.24
5.4.230.0090.04316.19
5.4.220.0060.03316.15
5.4.210.0050.03316.22
5.4.200.0080.03016.25
5.4.190.0040.03516.25
5.4.180.0060.05116.22
5.4.170.0080.03316.20
5.4.160.0070.03316.16
5.4.150.0070.03916.18
5.4.140.0080.03014.70
5.4.130.0070.03414.67
5.4.120.0070.03714.80
5.4.110.0050.03314.71
5.4.100.0130.02514.64
5.4.90.0070.03514.74
5.4.80.0130.03214.76
5.4.70.0050.04214.75
5.4.60.0110.03714.66
5.4.50.0080.03614.69
5.4.40.0090.03014.71
5.4.30.0070.03114.66
5.4.20.0080.03814.65
5.4.10.0040.03614.68
5.4.00.0010.04014.50
5.3.290.0110.02914.08
5.3.280.0050.04413.96
5.3.270.0070.05014.01
5.3.260.0060.03413.98
5.3.250.0090.03913.99
5.3.240.0050.03113.94
5.3.230.0110.04013.91
5.3.220.0050.03413.83
5.3.210.0080.03213.98
5.3.200.0090.03513.94
5.3.190.0040.04413.95
5.3.180.0100.04713.95
5.3.170.0100.03913.94
5.3.160.0050.03113.92
5.3.150.0130.03113.96
5.3.140.0070.03213.90
5.3.130.0050.03313.92
5.3.120.0070.03213.99
5.3.110.0070.03214.00
5.3.100.0040.03813.63
5.3.90.0100.02813.74
5.3.80.0090.03413.74
5.3.70.0080.03613.72
5.3.60.0120.03013.79
5.3.50.0090.02913.61
5.3.40.0050.03113.72
5.3.30.0070.03413.67
5.3.20.0080.02713.64
5.3.10.0060.03313.56
5.3.00.0070.03113.56
5.2.170.0070.02412.46
5.2.160.0020.03112.54
5.2.150.0050.02812.61
5.2.140.0090.02612.52
5.2.130.0050.02412.52
5.2.120.0020.02612.43
5.2.110.0070.02912.42
5.2.100.0070.02112.45
5.2.90.0070.02512.48
5.2.80.0070.02512.46
5.2.70.0070.03212.42
5.2.60.0090.02512.43
5.2.50.0090.02312.42
5.2.40.0050.02412.45
5.2.30.0030.02712.38
5.2.20.0060.02612.44
5.2.10.0040.02512.45
5.2.00.0100.03712.41
5.1.60.0090.02812.13
5.1.50.0040.02612.04
5.1.40.0050.03212.15
5.1.30.0110.02012.26
5.1.20.0050.02612.23
5.1.10.0070.02012.12
5.1.00.0040.02512.17
5.0.50.0050.01611.83
5.0.40.0040.01911.83
5.0.30.0040.03911.83
5.0.20.0050.02311.83
5.0.10.0060.01611.83
5.0.00.0050.02511.83
4.4.90.0030.01611.83
4.4.80.0030.01311.83
4.4.70.0020.01611.83
4.4.60.0020.01411.83
4.4.50.0050.01111.83
4.4.40.0040.02111.83
4.4.30.0030.01411.83
4.4.20.0050.01211.83
4.4.10.0070.01011.83
4.4.00.0020.02211.83
4.3.110.0030.01711.83
4.3.100.0050.01411.83
4.3.90.0030.02211.83
4.3.80.0030.02111.83
4.3.70.0020.01611.83
4.3.60.0040.02111.83
4.3.50.0040.02311.83
4.3.40.0040.03011.83
4.3.30.0020.01811.83
4.3.20.0010.01511.83
4.3.10.0010.01411.83
4.3.00.0030.01311.83