3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 5; $b = &$a; echo ++$a.$b++;

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.120.0060.01016.60
7.2.110.0100.00316.20
7.2.100.0080.00816.64
7.2.90.0040.01116.63
7.2.80.0030.00616.52
7.2.70.0070.00716.89
7.2.60.0050.00816.86
7.2.50.0030.01016.85
7.2.40.0000.01316.91
7.2.30.0030.01416.91
7.2.20.0100.00316.89
7.2.10.0080.00416.82
7.2.00.0090.00518.05
7.1.240.0060.00315.81
7.1.230.0080.00615.77
7.1.220.0070.00315.89
7.1.210.0000.01415.92
7.1.200.0050.00915.64
7.1.190.0040.00415.70
7.1.180.0040.00815.69
7.1.170.0000.00815.81
7.1.160.0130.00015.62
7.1.150.0030.00915.77
7.1.140.0030.01015.90
7.1.130.0000.01115.67
7.1.120.0100.00315.72
7.1.110.0070.00715.96
7.1.100.0070.00417.03
7.1.90.0000.01115.80
7.1.80.0100.00315.94
7.1.70.0030.01116.43
7.1.60.0080.01017.54
7.1.50.0080.01016.15
7.1.40.0090.00315.66
7.1.30.0000.00715.69
7.1.20.0000.01115.84
7.1.10.0090.00615.76
7.1.00.0020.04419.19
7.0.320.0040.00415.21
7.0.310.0070.01015.55
7.0.300.0040.00815.45
7.0.290.0040.01115.57
7.0.280.0040.00415.31
7.0.270.0090.00315.35
7.0.260.0030.01015.39
7.0.250.0070.00715.18
7.0.240.0090.00315.49
7.0.230.0060.00615.39
7.0.220.0030.00615.26
7.0.210.0070.00315.31
7.0.200.0040.00715.96
7.0.190.0000.01615.23
7.0.180.0080.00415.24
7.0.170.0000.01215.18
7.0.160.0040.01115.44
7.0.150.0030.00315.57
7.0.140.0070.03418.75
7.0.130.0030.00915.52
7.0.120.0030.01015.42
7.0.110.0030.00915.50
7.0.100.0120.04317.63
7.0.90.0120.03117.56
7.0.80.0020.02717.51
7.0.70.0030.03017.65
7.0.60.0030.03617.49
7.0.50.0100.03517.94
7.0.40.0030.02816.91
7.0.30.0110.03816.82
7.0.20.0110.04216.60
7.0.10.0100.03516.63
7.0.00.0050.02816.77
hhvm-3.22.00.0660.09990.46
hhvm-3.21.30.0530.10990.59
hhvm-3.21.00.0590.10489.92
hhvm-3.20.20.0570.11089.77
hhvm-3.19.20.0540.11789.11
hhvm-3.18.50.0560.10088.98
hhvm-3.18.40.0490.11288.17
hhvm-3.17.30.0570.10087.46
hhvm-3.15.40.0640.08485.14
hhvm-3.13.20.0470.10896.50
hhvm-3.12.140.0430.13295.38
hhvm-3.11.10.0500.11187.50
hhvm-3.10.10.0470.10184.57
5.6.380.0100.00314.35
5.6.370.0000.00914.36
5.6.360.0040.00714.48
5.6.350.0080.00414.45
5.6.340.0070.00314.37
5.6.330.0000.01114.28
5.6.320.0120.00414.21
5.6.310.0060.00614.37
5.6.300.0060.00614.46
5.6.290.0100.00714.21
5.6.280.0050.04017.59
5.6.270.0070.00714.63
5.6.260.0070.00314.60
5.6.250.0050.02817.41
5.6.240.0030.02617.65
5.6.230.0050.02817.45
5.6.220.0050.02017.44
5.6.210.0020.02817.53
5.6.200.0070.03117.65
5.6.190.0030.03017.82
5.6.180.0020.03917.71
5.6.170.0080.04617.75
5.6.160.0050.04617.60
5.6.150.0080.04617.57
5.6.140.0100.03517.56
5.6.130.0130.03917.68
5.6.120.0100.04217.62
5.6.110.0120.03717.59
5.6.100.0100.03617.68
5.6.90.0070.03217.58
5.6.80.0080.04117.21
5.6.70.0070.02317.37
5.6.60.0060.02317.51
5.6.50.0090.02917.38
5.6.40.0090.04017.37
5.6.30.0020.04617.35
5.6.20.0070.04017.29
5.6.10.0090.04117.35
5.6.00.0050.03917.30
5.5.380.0070.03515.84
5.5.370.0080.02215.89
5.5.360.0020.03515.87
5.5.350.0080.04015.86
5.5.340.0090.03716.07
5.5.330.0070.03216.04
5.5.320.0030.04315.95
5.5.310.0070.04316.09
5.5.300.0060.04116.06
5.5.290.0100.04016.01
5.5.280.0070.02515.99
5.5.270.0090.03816.05
5.5.260.0090.03916.07
5.5.250.0030.03015.93
5.5.240.0080.03315.63
5.5.230.0100.03315.72
5.5.220.0020.02515.75
5.5.210.0030.04015.77
5.5.200.0040.03915.63
5.5.190.0050.02015.77
5.5.180.0020.04615.72
5.5.170.0100.00314.07
5.5.160.0030.02415.68
5.5.150.0040.02315.73
5.5.140.0060.03615.68
5.5.130.0160.01215.76
5.5.120.0030.03315.69
5.5.110.0050.03715.77
5.5.100.0110.03515.65
5.5.90.0070.03815.62
5.5.80.0050.02215.66
5.5.70.0070.03715.61
5.5.60.0090.03015.68
5.5.50.0040.02515.71
5.5.40.0050.03615.67
5.5.30.0050.04215.67
5.5.20.0060.03315.68
5.5.10.0000.02715.68
5.5.00.0080.03715.63
5.4.450.0090.04215.36
5.4.440.0100.03615.26
5.4.430.0100.03615.31
5.4.420.0030.02815.29
5.4.410.0070.03815.26
5.4.400.0030.02515.17
5.4.390.0050.04115.13
5.4.380.0020.04415.12
5.4.370.0070.02015.17
5.4.360.0060.02915.17
5.4.350.0090.03315.16
5.4.340.0080.03815.18
5.4.330.0000.01011.27
5.4.320.0030.03715.19
5.4.310.0030.04315.17
5.4.300.0080.02315.15
5.4.290.0050.02015.13
5.4.280.0010.04315.16
5.4.270.0100.03215.16
5.4.260.0050.04015.14
5.4.250.0090.03815.12
5.4.240.0080.03615.05
5.4.230.0060.02515.04
5.4.220.0090.04015.12
5.4.210.0000.03215.16
5.4.200.0070.03215.08
5.4.190.0020.04015.19
5.4.180.0060.03315.14
5.4.170.0110.03715.12
5.4.160.0120.03515.15
5.4.150.0140.03315.20
5.4.140.0060.03913.78
5.4.130.0030.02713.79
5.4.120.0050.04313.82
5.4.110.0050.03713.81
5.4.100.0080.01913.79
5.4.90.0080.03813.81
5.4.80.0080.03213.83
5.4.70.0030.03713.82
5.4.60.0070.04213.83
5.4.50.0090.03313.73
5.4.40.0070.03713.86
5.4.30.0110.03313.81
5.4.20.0060.02613.82
5.4.10.0050.02613.77
5.4.00.0050.01913.50
5.3.290.0040.02812.89
5.3.280.0020.02412.86
5.3.270.0060.02212.86
5.3.260.0080.03612.86
5.3.250.0080.03612.90
5.3.240.0040.02812.90
5.3.230.0100.03512.92
5.3.220.0040.02312.91
5.3.210.0070.03512.91
5.3.200.0030.02312.92
5.3.190.0070.04512.91
5.3.180.0070.03712.84
5.3.170.0070.03712.85
5.3.160.0050.04212.91
5.3.150.0030.02612.91
5.3.140.0080.04012.84
5.3.130.0090.03812.89
5.3.120.0080.02012.87
5.3.110.0030.02312.88
5.3.100.0060.04212.64
5.3.90.0060.03312.62
5.3.80.0120.03512.64
5.3.70.0060.03512.60
5.3.60.0070.02812.61
5.3.50.0070.03812.60
5.3.40.0020.03212.54
5.3.30.0030.02512.55
5.3.20.0030.02812.36
5.3.10.0050.04112.39
5.3.00.0050.03412.44
5.2.170.0070.02811.13
5.2.160.0060.01611.23
5.2.150.0070.03311.20
5.2.140.0060.02511.18
5.2.130.0020.01811.09
5.2.120.0030.02111.09
5.2.110.0080.01511.14
5.2.100.0020.03811.08
5.2.90.0030.02511.12
5.2.80.0080.03211.14
5.2.70.0060.03211.21
5.2.60.0020.03711.15
5.2.50.0080.02711.05
5.2.40.0040.02411.04
5.2.30.0060.03011.15
5.2.20.0040.02111.14
5.2.10.0000.03511.12
5.2.00.0080.02311.02
5.1.60.0030.02010.62
5.1.50.0000.01710.68
5.1.40.0030.01510.61
5.1.30.0040.01510.87
5.1.20.0060.01310.81
5.1.10.0060.01210.58
5.1.00.0030.01710.67
5.0.50.0030.01210.48
5.0.40.0030.01010.48
5.0.30.0000.02010.48
5.0.20.0030.01010.48
5.0.10.0020.01310.48
5.0.00.0030.01710.48
4.4.90.0050.01210.48
4.4.80.0050.01710.48
4.4.70.0000.02110.48
4.4.60.0040.01510.48
4.4.50.0000.01510.48
4.4.40.0000.01810.48
4.4.30.0030.00910.48
4.4.20.0000.01210.48
4.4.10.0030.00810.48
4.4.00.0070.01010.48
4.3.110.0020.00810.48
4.3.100.0020.01010.48
4.3.90.0070.00510.48
4.3.80.0020.01310.48
4.3.70.0020.01010.48
4.3.60.0010.01110.48
4.3.50.0000.00910.48
4.3.40.0000.01410.48
4.3.30.0000.01210.48
4.3.20.0000.01010.48
4.3.10.0000.01010.48
4.3.00.0000.00910.48