3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $var1 = 'Hello World'; $var2 = ''; $var2 =& $var1; debug_zval_dump($var1);
based on e31sB

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.0070.01098.97
7.3.0rc30.0040.00816.47
7.3.0beta10.0070.00312.51
7.3.0alpha10.0060.00312.41
7.2.60.0030.00916.62
7.2.10.0170.01017.91
7.2.00.0100.01818.30
7.1.200.0030.00715.80
7.1.130.0230.00416.61
7.1.120.0280.00616.46
7.1.110.0070.02215.93
7.1.100.0190.00816.12
7.1.90.0230.00916.05
7.1.80.0180.01615.92
7.1.70.0180.00516.09
7.1.60.0200.01325.06
7.1.50.0130.01324.99
7.1.40.0210.00924.78
7.1.30.0190.01324.69
7.1.20.0210.00724.71
7.1.10.0120.00915.71
7.1.00.0130.00615.73
7.0.270.0220.01416.31
7.0.260.0260.01115.90
7.0.250.0240.01115.76
7.0.240.0180.00915.77
7.0.230.0270.01015.77
7.0.220.0290.01115.58
7.0.210.0110.00714.38
7.0.200.0170.01115.72
7.0.190.0570.00515.69
7.0.180.0110.01315.54
7.0.170.0170.00915.57
7.0.160.0150.00715.59
7.0.150.0090.01015.60
7.0.140.0130.00915.66
7.0.130.0190.00615.75
7.0.120.0120.01115.65
7.0.110.0170.00715.58
7.0.100.0090.01115.61
7.0.90.0140.00615.55
7.0.80.0140.01215.60
7.0.70.0520.00515.60
7.0.60.0020.01315.57
7.0.50.0030.01115.59
7.0.40.0100.00815.63
7.0.30.0130.00715.65
7.0.20.0060.01115.69
7.0.10.0180.01215.64
7.0.00.0060.00715.65
hhvm-3.22.00.0750.21390.27
hhvm-3.21.30.0880.22989.67
hhvm-3.21.00.1050.18989.87
hhvm-3.20.20.0840.20689.87
hhvm-3.19.20.0980.19489.14
hhvm-3.18.50.0800.21088.12
hhvm-3.18.40.0860.22288.18
hhvm-3.17.30.0480.15192.91
hhvm-3.15.40.0490.12792.78
hhvm-3.13.20.0710.154102.72
hhvm-3.12.140.0480.139104.39
hhvm-3.11.10.0610.13396.92
hhvm-3.10.10.0600.14193.65
5.6.300.0170.04220.97
5.6.290.0140.04520.70
5.6.280.0080.05620.92
5.6.270.0130.05920.98
5.6.260.0080.05620.91
5.6.250.0130.05920.90
5.6.240.0260.05220.88
5.6.230.0140.05420.79
5.6.220.0090.05820.88
5.6.210.0120.05320.94
5.6.200.0130.05720.82
5.6.190.0100.06020.85
5.6.180.0080.05920.90
5.6.170.0080.05820.76
5.6.160.0030.06120.77
5.6.150.0070.05620.77
5.6.140.0120.04720.78
5.6.130.0080.07220.81
5.6.120.0070.05520.82
5.6.110.0120.04820.97
5.6.100.0100.06220.84
5.6.90.0090.05220.80
5.6.80.0140.04320.23
5.6.70.0090.04620.30
5.6.60.0080.05020.11
5.6.50.0100.06720.21
5.6.40.0010.05420.22
5.6.30.0170.05120.13
5.6.20.0120.05120.22
5.6.10.0130.05120.18
5.6.00.0100.07020.19
5.5.380.0120.04417.46
5.5.370.0050.05117.49
5.5.360.0060.05817.51
5.5.350.0080.05017.42
5.5.340.0040.05617.86
5.5.330.0030.06117.84
5.5.320.0100.04717.81
5.5.310.0070.06117.92
5.5.300.0070.05317.99
5.5.290.0070.05918.00
5.5.280.0090.05818.01
5.5.270.0050.05318.07
5.5.260.0150.04817.86
5.5.250.0090.05017.73
5.5.240.0100.04417.34
5.5.230.0120.05617.36
5.5.220.0120.04317.33
5.5.210.0030.06017.32
5.5.200.0080.05517.26
5.5.190.0080.06617.31
5.5.180.0120.05617.22
5.5.160.0080.04917.29
5.5.150.0050.05517.28
5.5.140.0070.05017.27
5.5.130.0030.05117.35
5.5.120.0080.04617.17
5.5.110.0050.05217.30
5.5.100.0080.04617.19
5.5.90.0100.04717.16
5.5.80.0090.05617.22
5.5.70.0060.05517.29
5.5.60.0100.05517.12
5.5.50.0120.05417.09
5.5.40.0180.03817.20
5.5.30.0150.04517.23
5.5.20.0100.05417.23
5.5.10.0090.05517.13
5.5.00.0060.05217.06
5.4.450.0090.05119.26
5.4.440.0070.06119.37
5.4.430.0120.07019.35
5.4.420.0140.04419.26
5.4.410.0140.04519.21
5.4.400.0100.04319.03
5.4.390.0100.04719.06
5.4.380.0150.04719.01
5.4.370.0120.04918.93
5.4.360.0130.05319.08
5.4.350.0040.05218.92
5.4.340.0070.05518.97
5.4.320.0090.06818.99
5.4.310.0110.05318.88
5.4.300.0120.06418.96
5.4.290.0120.04819.06
5.4.280.0110.05119.05
5.4.270.0090.04818.97
5.4.260.0030.05018.99
5.4.250.0080.05519.00
5.4.240.0080.05419.11
5.4.230.0040.05219.08
5.4.220.0120.05019.00
5.4.210.0150.05019.07
5.4.200.0080.04718.98
5.4.190.0110.05019.00
5.4.180.0110.06118.98
5.4.170.0070.05618.91
5.4.160.0140.05618.97
5.4.150.0070.05119.08
5.4.140.0060.05616.71
5.4.130.0090.04616.68
5.4.120.0130.04216.68
5.4.110.0130.05016.57
5.4.100.0100.04516.68
5.4.90.0090.05916.64
5.4.80.0060.04516.67
5.4.70.0090.04116.69
5.4.60.0160.05116.56
5.4.50.0080.04716.63
5.4.40.0110.04016.70
5.4.30.0080.04116.64
5.4.20.0050.04616.57
5.4.10.0060.04716.63
5.4.00.0180.03716.24
5.3.290.0080.05415.71
5.3.280.0080.07515.76
5.3.270.0070.06015.77
5.3.260.0140.05315.75
5.3.250.0050.04815.69
5.3.240.0030.05015.70
5.3.230.0120.04615.72
5.3.220.0070.05215.67
5.3.210.0050.05515.76
5.3.200.0060.05315.69
5.3.190.0120.04115.75
5.3.180.0110.03915.69
5.3.170.0050.04515.67
5.3.160.0150.04515.66
5.3.150.0070.05815.67
5.3.140.0050.05015.57
5.3.130.0020.05615.74
5.3.120.0040.06015.73
5.3.110.0070.05115.72
5.3.100.0070.04715.44
5.3.90.0050.04915.45
5.3.80.0050.05015.36
5.3.70.0070.04815.45
5.3.60.0070.04515.38
5.3.50.0050.04615.42
5.3.40.0110.04215.45
5.3.30.0030.04515.43
5.3.20.0030.04715.25
5.3.10.0020.04715.20
5.3.00.0070.04115.26
5.2.170.0080.04113.95
5.2.160.0060.03513.87
5.2.150.0090.03514.06
5.2.140.0040.03713.95
5.2.130.0090.05113.89
5.2.120.0060.03314.06
5.2.110.0030.03814.01
5.2.100.0050.04114.00
5.2.90.0050.04114.05
5.2.80.0050.03814.00
5.2.70.0080.03714.01
5.2.60.0080.03913.86
5.2.50.0050.03813.86
5.2.40.0020.03713.98
5.2.30.0030.04313.95
5.2.20.0170.03413.92
5.2.10.0030.03813.89
5.2.00.0030.03813.82
5.1.60.0080.03113.43
5.1.50.0050.02913.53
5.1.40.0080.02513.45
5.1.30.0070.03213.65
5.1.20.0050.03813.66
5.1.10.0050.03513.52
5.1.00.0000.03513.46
5.0.50.0030.02413.01
5.0.40.0020.02813.01
5.0.30.0070.03413.01
5.0.20.0030.02513.01
5.0.10.0030.02513.01
5.0.00.0100.03213.01
4.4.90.0070.01713.01
4.4.80.0020.02713.01
4.4.70.0030.02013.01
4.4.60.0040.02113.01
4.4.50.0050.02013.01
4.4.40.0060.03113.01
4.4.30.0030.02013.01
4.4.20.0020.02313.01
4.4.10.0020.02113.01
4.4.00.0030.03113.01
4.3.110.0020.02013.01
4.3.100.0050.01513.01
4.3.90.0070.01413.01
4.3.80.0020.03213.01
4.3.70.0020.02113.01
4.3.60.0020.02113.01
4.3.50.0020.02213.01
4.3.40.0030.02813.01
4.3.30.0070.01513.01
4.3.20.0000.02113.01
4.3.10.0020.02013.01
4.3.00.0000.02213.01