3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = array(function(){echo "test1";},function($input){echo $input;}); $test('input');
based on U2r6G

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.0040.00916.63
7.2.00.0060.00919.27
7.1.200.0080.00415.57
7.1.100.0030.01318.00
7.1.70.0030.01017.02
7.1.60.0110.01419.40
7.1.50.0160.00716.80
7.1.00.0070.07322.51
7.0.200.0050.00216.71
7.0.140.0030.07022.04
7.0.60.0100.08019.74
7.0.50.0030.04317.97
7.0.40.0030.05720.11
7.0.30.0300.07320.09
7.0.20.0300.08020.16
7.0.10.0070.08720.12
7.0.00.0000.05320.06
5.6.280.0000.07320.86
5.6.210.0130.07020.50
5.6.200.0030.07718.22
5.6.190.0130.07720.53
5.6.180.0200.05020.48
5.6.170.0300.07720.47
5.6.160.0170.03720.55
5.6.150.0070.08018.15
5.6.140.0100.04718.18
5.6.130.0030.06318.24
5.6.120.0130.04720.99
5.6.110.0200.06720.99
5.6.100.0070.04021.12
5.6.90.0070.04021.08
5.6.80.0100.03720.52
5.5.350.0000.03320.49
5.5.340.0100.07717.95
5.5.330.0100.08720.25
5.5.320.0330.05320.35
5.5.310.0330.08020.36
5.5.300.0030.04018.07
5.5.290.0030.04017.95
5.5.280.0170.03720.80
5.5.270.0030.04320.87
5.5.260.0030.04320.96
5.5.250.0070.04720.56
5.5.240.0130.03020.15
5.4.450.0370.04319.64
5.4.440.0500.03719.32
5.4.430.0330.09319.41
5.4.420.0200.04319.63
5.4.410.0370.04019.14
5.4.400.0230.04019.08
5.4.390.0330.04719.09
5.4.380.0370.05018.74
5.4.370.0400.05018.58
5.4.360.0370.04718.75
5.4.350.0270.06018.72
5.4.340.0330.05718.75
5.4.320.0040.03912.50
5.4.310.0060.03912.50
5.4.300.0010.04112.50
5.4.290.0060.04012.50
5.4.280.0070.03712.40
5.4.270.0050.03812.40
5.4.260.0090.03412.40
5.4.250.0080.03612.40
5.4.240.0070.03612.40
5.4.230.0030.04212.39
5.4.220.0030.04012.39
5.4.210.0080.03712.39
5.4.200.0100.03512.39
5.4.190.0080.04312.39
5.4.180.0100.04712.39
5.4.170.0060.05212.39
5.4.160.0120.05812.39
5.4.150.0110.04812.39
5.4.140.0120.04912.07
5.4.130.0070.05112.05
5.4.120.0040.05412.01
5.4.110.0100.05212.01
5.4.100.0100.03512.01
5.4.90.0060.03912.01
5.4.80.0080.05112.02
5.4.70.0100.04912.01
5.4.60.0120.04412.01
5.4.50.0050.04012.00
5.4.40.0070.03512.00
5.4.30.0080.03411.99
5.4.20.0070.03412.00
5.4.10.0060.03512.00
5.4.00.0060.03511.49
5.3.290.0070.04212.80
5.3.280.0060.03812.71
5.3.270.0070.04012.72
5.3.260.0090.04012.72
5.3.250.0080.03912.72
5.3.240.0060.03812.72
5.3.230.0090.03512.71
5.3.220.0070.03712.68
5.3.210.0080.04612.68
5.3.200.0090.04712.68
5.3.190.0090.04012.68
5.3.180.0080.05512.68
5.3.170.0070.03912.66
5.3.160.0040.04112.67
5.3.150.0090.03612.67
5.3.140.0050.03812.66
5.3.130.0050.04112.66
5.3.120.0060.03912.66
5.3.110.0070.03812.66
5.3.100.0060.04212.12
5.3.90.0070.03612.10
5.3.80.0060.03612.10
5.3.70.0070.04112.09
5.3.60.0050.03812.09
5.3.50.0080.03512.03
5.3.40.0070.03512.03
5.3.30.0070.03811.98
5.3.20.0060.04011.77
5.3.10.0020.03811.73
5.3.00.0060.03711.72
5.2.170.0030.0359.18
5.2.160.0090.0269.18
5.2.150.0070.0299.18
5.2.140.0040.0329.18
5.2.130.0070.0289.14
5.2.120.0050.0419.14
5.2.110.0050.0359.14
5.2.100.0060.0299.14
5.2.90.0080.0289.14
5.2.80.0060.0339.14
5.2.70.0080.0299.14
5.2.60.0050.0339.09
5.2.50.0050.0429.06
5.2.40.0070.0389.04
5.2.30.0090.0379.01
5.2.20.0030.0339.00
5.2.10.0060.0278.93
5.2.00.0070.0288.78
5.1.60.0060.0238.06
5.1.50.0040.0258.07
5.1.40.0060.0268.05
5.1.30.0060.0258.40
5.1.20.0010.0298.42
5.1.10.0040.0268.14
5.1.00.0030.0368.14
5.0.50.0050.0206.62
5.0.40.0030.0206.48
5.0.30.0040.0306.29
5.0.20.0050.0176.27
5.0.10.0060.0176.24
5.0.00.0030.0326.23
4.4.90.0030.0144.78
4.4.80.0030.0154.75
4.4.70.0040.0154.75
4.4.60.0030.0154.75
4.4.50.0030.0164.77
4.4.40.0030.0344.71
4.4.30.0030.0214.75
4.4.20.0050.0204.84
4.4.10.0030.0164.85
4.4.00.0020.0364.75
4.3.110.0020.0224.67
4.3.100.0030.0214.66
4.3.90.0050.0194.63
4.3.80.0020.0264.58
4.3.70.0030.0164.63
4.3.60.0010.0174.63
4.3.50.0020.0174.63
4.3.40.0050.0264.54
4.3.30.0020.0173.29
4.3.20.0010.0183.26
4.3.10.0010.0173.21
4.3.00.0030.02015.90