3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = "hello"; $b = "hi"; $val = "a"; echo $$val; // outputs "hello" echo "\n"; $val = "b"; echo $$val; // outputs "hi"

Here you find the average performance (time & memory) of each version. A greyed 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.20.0080.02118.04
7.2.10.0530.01017.95
7.2.00.0130.00918.56
7.1.140.0190.01316.70
7.1.130.0110.01616.73
7.1.120.0160.01016.55
7.1.110.0150.01216.07
7.1.100.0080.01216.35
7.1.90.0160.00916.11
7.1.80.0110.00915.94
7.1.70.0110.00516.27
7.1.60.0190.00825.33
7.1.50.0200.01325.12
7.1.40.0150.01024.95
7.1.30.0170.01524.96
7.1.20.0710.01424.90
7.1.10.0090.00716.06
7.1.00.0080.01015.96
7.0.270.0140.01116.16
7.0.260.0100.01616.52
7.0.250.0140.01215.77
7.0.240.0090.00915.92
7.0.230.0140.01315.91
7.0.220.0120.01215.61
7.0.210.0110.01114.52
7.0.200.0070.00816.21
7.0.190.0040.01116.21
7.0.180.0060.01015.89
7.0.170.0120.00915.88
7.0.160.0080.00815.84
7.0.150.0090.00915.83
7.0.140.0080.00815.86
7.0.130.0070.01016.07
7.0.120.0080.00916.09
7.0.110.0070.00916.04
7.0.100.0060.01115.91
7.0.90.0460.00816.02
7.0.80.0060.00816.02
7.0.70.0080.01115.94
7.0.60.0130.01115.73
7.0.50.0170.00815.93
7.0.40.0080.01116.05
7.0.30.0060.01216.02
7.0.20.0070.00916.01
7.0.10.0050.01416.09
7.0.00.0070.01115.95
hhvm-3.22.00.1210.27889.88
hhvm-3.21.30.1270.31089.51
hhvm-3.21.00.1660.30089.48
hhvm-3.20.20.1420.32089.22
hhvm-3.19.20.1720.30888.50
hhvm-3.18.50.1220.28488.12
hhvm-3.18.40.1500.26987.46
hhvm-3.17.30.0720.17094.89
hhvm-3.15.40.0710.17792.78
hhvm-3.13.20.0890.191102.91
hhvm-3.12.140.0740.153104.63
hhvm-3.11.10.0810.16096.57
hhvm-3.10.10.0780.18193.85
5.6.300.0140.06820.79
5.6.290.0120.06220.88
5.6.280.0110.06620.93
5.6.270.0130.06520.84
5.6.260.0130.05320.98
5.6.250.0140.06120.95
5.6.240.0160.05720.79
5.6.230.0120.06120.96
5.6.220.0180.06020.73
5.6.210.0140.06020.91
5.6.200.0130.06720.89
5.6.190.0140.06820.89
5.6.180.0120.05820.79
5.6.170.0090.05720.78
5.6.160.0110.05120.84
5.6.150.0070.07220.86
5.6.140.0180.05520.78
5.6.130.0140.05020.96
5.6.120.0110.05920.82
5.6.110.0120.06420.90
5.6.100.0140.06520.77
5.6.90.0160.06520.74
5.6.80.0130.04620.15
5.6.70.0110.05920.26
5.6.60.0110.05920.17
5.6.50.0130.05620.29
5.6.40.0080.06020.33
5.6.30.0110.06220.16
5.6.20.0110.04920.16
5.6.10.0120.05220.19
5.6.00.0120.04820.13
5.5.380.0140.05617.51
5.5.370.0120.05617.47
5.5.360.0210.05717.43
5.5.350.0160.05517.45
5.5.340.0110.05217.95
5.5.330.0120.06718.08
5.5.320.0100.06017.93
5.5.310.0180.05217.84
5.5.300.0120.05817.96
5.5.290.0100.06018.04
5.5.280.0090.05917.98
5.5.270.0090.05517.84
5.5.260.0140.05717.99
5.5.250.0110.05217.68
5.5.240.0070.05117.30
5.5.230.0060.05117.36
5.5.220.0090.06017.38
5.5.210.0110.04817.41
5.5.200.0120.04417.34
5.5.190.0120.04817.37
5.5.180.0080.06217.26
5.5.160.0110.05217.37
5.5.150.0100.05217.37
5.5.140.0140.06717.23
5.5.130.0120.05617.32
5.5.120.0120.05517.35
5.5.110.0120.06717.26
5.5.100.0120.05417.37
5.5.90.0150.04617.31
5.5.80.0100.04417.37
5.5.70.0130.04517.32
5.5.60.0100.05817.37
5.5.50.0090.05817.31
5.5.40.0320.04317.18
5.5.30.0110.05617.27
5.5.20.0090.06117.20
5.5.10.0100.05917.22
5.5.00.0160.05317.31
5.4.450.0200.05419.35
5.4.440.0110.05419.31
5.4.430.0120.06119.29
5.4.420.0130.05919.27
5.4.410.0110.05719.15
5.4.400.0100.05518.98
5.4.390.0140.04518.96
5.4.380.0110.05819.05
5.4.370.0090.04918.82
5.4.360.0110.05519.00
5.4.350.0080.05018.92
5.4.340.0130.04718.94
5.4.320.0150.06218.98
5.4.310.0110.07218.84
5.4.300.0120.05818.95
5.4.290.0150.06219.07
5.4.280.0090.05318.96
5.4.270.0100.05318.92
5.4.260.0100.04818.90
5.4.250.0090.05119.01
5.4.240.0100.05818.91
5.4.230.0080.06219.04
5.4.220.0100.06419.01
5.4.210.0120.04918.86
5.4.200.0140.05919.00
5.4.190.0120.05818.89
5.4.180.0100.05519.06
5.4.170.0150.04718.81
5.4.160.0110.05419.01
5.4.150.0160.05419.13
5.4.140.0140.05516.98
5.4.130.0200.04016.92
5.4.120.0140.05017.00
5.4.110.0120.05416.91
5.4.100.0070.05616.99
5.4.90.0110.05016.93
5.4.80.0100.04716.86
5.4.70.0120.04916.99
5.4.60.0110.04417.02
5.4.50.0090.05216.90
5.4.40.0060.05316.90
5.4.30.0110.04716.95
5.4.20.0080.05216.98
5.4.10.0070.05516.96
5.4.00.0100.04816.72
5.3.290.0100.05416.12
5.3.280.0080.05616.04
5.3.270.0080.05015.97
5.3.260.0120.04916.08
5.3.250.0130.05016.00
5.3.240.0110.05716.07
5.3.230.0120.04416.04
5.3.220.0090.05816.06
5.3.210.0120.05416.05
5.3.200.0100.04615.98
5.3.190.0110.04715.99
5.3.180.0080.06016.06
5.3.170.0110.05216.04
5.3.160.0080.05615.98
5.3.150.0070.04716.06
5.3.140.0080.04615.98
5.3.130.0100.05916.03
5.3.120.0050.05716.04
5.3.110.0070.05316.07
5.3.100.0110.05115.76
5.3.90.0090.05915.62
5.3.80.0110.04915.71
5.3.70.0120.05115.68
5.3.60.0120.05115.61
5.3.50.0160.04615.75
5.3.40.0130.05015.68
5.3.30.0160.05715.66
5.3.20.0090.05615.46
5.3.10.0060.05715.53
5.3.00.0100.05315.52
5.2.170.0070.04814.31
5.2.160.0070.05114.34
5.2.150.0090.05114.34
5.2.140.0060.04914.35
5.2.130.0080.04414.38
5.2.120.0110.04214.28
5.2.110.0050.04214.25
5.2.100.0100.03914.33
5.2.90.0090.04214.16
5.2.80.0110.04414.26
5.2.70.0080.04714.28
5.2.60.0080.03714.23
5.2.50.0110.04214.13
5.2.40.0100.04214.17
5.2.30.0080.04514.26
5.2.20.0090.03614.31
5.2.10.0090.04114.13
5.2.00.0060.03814.07
5.1.60.0040.03613.77
5.1.50.0070.03513.87
5.1.40.0060.03013.85
5.1.30.0080.03914.01
5.1.20.0100.03413.98
5.1.10.0060.03113.90
5.1.00.0100.03713.74
5.0.50.0070.02412.93
5.0.40.0090.02413.01
5.0.30.0060.03812.93
5.0.20.0060.02712.93
5.0.10.0030.03312.93
5.0.00.0090.03612.93
4.4.90.0030.02412.93
4.4.80.0090.02112.93
4.4.70.0050.02312.93
4.4.60.0060.01712.93
4.4.50.0020.02612.93
4.4.40.0050.03512.93
4.4.30.0040.01912.93
4.4.20.0020.02312.93
4.4.10.0030.02012.93
4.4.00.0050.02812.93
4.3.110.0010.02712.93
4.3.100.0040.02312.93
4.3.90.0030.02612.93
4.3.80.0030.03112.93
4.3.70.0060.01612.93
4.3.60.0090.02112.93
4.3.50.0080.01912.93
4.3.40.0040.03412.93
4.3.30.0010.02312.93
4.3.20.0050.02112.93
4.3.10.0030.02212.93
4.3.00.0050.02112.93