3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function f($a){ print_r(debug_backtrace()); } $var = 1; f($var);

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.60.0070.00716.73
7.2.00.0030.00619.02
7.1.200.0060.00615.74
7.1.100.0170.00318.22
7.1.70.0040.00417.16
7.1.60.0170.00719.32
7.1.50.0040.01816.87
7.1.00.0000.07322.29
7.0.200.0060.00316.79
7.0.140.0130.06321.98
7.0.60.0070.08319.92
7.0.50.0000.04317.83
7.0.40.0100.06319.96
7.0.30.0400.07320.23
7.0.20.0370.05720.09
7.0.10.0070.08720.07
7.0.00.0070.06720.16
5.6.280.0070.06721.03
5.6.210.0100.08320.71
5.6.200.0030.06018.29
5.6.190.0030.04320.62
5.6.180.3130.04320.59
5.6.170.0270.08020.52
5.6.160.0030.05720.56
5.6.150.0100.04718.15
5.6.140.0100.08018.15
5.6.130.0070.08018.17
5.6.120.0030.04320.95
5.6.110.0070.04020.99
5.6.100.0130.08320.96
5.6.90.0130.06321.04
5.6.80.0000.05320.29
5.6.70.0270.03320.41
5.5.350.0300.06720.46
5.5.340.0170.07317.99
5.5.330.0070.04320.42
5.5.320.0370.05720.28
5.5.310.0100.04720.30
5.5.300.0030.03717.95
5.5.290.0070.08017.99
5.5.280.0130.03720.80
5.5.270.0000.04720.86
5.5.260.0130.07720.73
5.5.250.0100.04320.68
5.5.240.0100.04020.26
5.4.450.0800.05719.46
5.4.440.0800.05719.69
5.4.430.1070.04319.46
5.4.420.0630.00019.39
5.4.410.0670.00019.21
5.4.400.0630.00019.12
5.4.390.0600.00018.99
5.4.380.0330.05018.66
5.4.370.0430.05718.56
5.4.360.0330.06318.52
5.4.350.0300.05718.59
5.4.340.0470.05018.53
5.4.320.0090.03712.50
5.4.310.0070.04012.50
5.4.300.0110.03512.51
5.4.290.0070.04112.50
5.4.280.0030.04112.40
5.4.270.0080.03412.39
5.4.260.0080.03612.40
5.4.250.0090.03712.40
5.4.240.0120.03212.40
5.4.230.0060.03912.39
5.4.220.0080.03412.39
5.4.210.0040.03712.39
5.4.200.0030.04112.39
5.4.190.0080.03712.39
5.4.180.0060.03712.39
5.4.170.0040.03912.40
5.4.160.0050.03912.39
5.4.150.0070.03512.39
5.4.140.0050.03712.07
5.4.130.0110.03612.06
5.4.120.0050.03812.02
5.4.110.0060.03612.02
5.4.100.0050.03812.01
5.4.90.0040.04112.01
5.4.80.0070.03712.01
5.4.70.0140.03612.01
5.4.60.0070.03512.01
5.4.50.0040.03912.01
5.4.40.0070.03312.00
5.4.30.0080.03511.99
5.4.20.0090.03511.99
5.4.10.0060.03512.00
5.4.00.0080.03411.48
5.3.290.0040.04112.80
5.3.280.0060.03812.71
5.3.270.0080.03712.72
5.3.260.0090.04612.72
5.3.250.0050.04412.71
5.3.240.0070.03912.72
5.3.230.0040.04012.71
5.3.220.0120.03112.68
5.3.210.0090.03612.68
5.3.200.0060.03712.68
5.3.190.0070.03712.68
5.3.180.0070.03512.67
5.3.170.0050.03712.67
5.3.160.0070.03512.68
5.3.150.0080.03412.68
5.3.140.0050.03712.66
5.3.130.0030.04312.66
5.3.120.0050.03912.66
5.3.110.0050.03912.66
5.3.100.0080.03512.11
5.3.90.0050.03712.10
5.3.80.0070.03912.09
5.3.70.0040.03712.09
5.3.60.0030.03912.07
5.3.50.0100.03212.02
5.3.40.0030.03912.02
5.3.30.0050.03611.97
5.3.20.0070.03411.76
5.3.10.0010.04011.73
5.3.00.0070.04011.71
5.2.170.0060.0299.21
5.2.160.0100.0249.22
5.2.150.0050.0309.22
5.2.140.0070.0299.21
5.2.130.0030.0309.18
5.2.120.0080.0259.17
5.2.110.0110.0229.18
5.2.100.0040.0299.17
5.2.90.0070.0279.17
5.2.80.0110.0259.16
5.2.70.0050.0319.16
5.2.60.0020.0339.12
5.2.50.0060.0299.09
5.2.40.0050.0299.07
5.2.30.0060.0309.04
5.2.20.0070.0289.03
5.2.10.0050.0308.94
5.2.00.0090.0298.80
5.1.60.0040.0248.08
5.1.50.0070.0228.08
5.1.40.0080.0228.06
5.1.30.0060.0258.41
5.1.20.0030.0288.43
5.1.10.0010.0298.16
5.1.00.0050.0258.15
5.0.50.0020.0226.63
5.0.40.0080.0156.50
5.0.30.0070.0276.31
5.0.20.0020.0206.28
5.0.10.0040.0196.25
5.0.00.0060.0286.24
4.4.90.0030.0154.78
4.4.80.0030.0144.76
4.4.70.0030.0154.75
4.4.60.0050.0134.75
4.4.50.0050.0134.77
4.4.40.0050.0234.71
4.4.30.0030.0154.76
4.4.20.0040.0154.84
4.4.10.0040.0154.85
4.4.00.0070.0224.76
4.3.110.0060.0124.67
4.3.100.0020.0164.67
4.3.90.0030.0144.64
4.3.80.0040.0234.58
4.3.70.0030.0144.63
4.3.60.0030.0144.63
4.3.50.0040.0144.63
4.3.40.0030.0234.54
4.3.30.0000.0183.30
4.3.20.0020.0163.28
4.3.10.0010.0173.23
4.3.00.0170.0236.98