3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $foo = array(0,1,2); $foo = array_filter($foo);

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.00.0040.00819.15
7.1.200.0000.01215.66
7.1.100.0000.01418.02
7.1.70.0060.00917.09
7.1.60.0000.02419.46
7.1.50.0100.00016.80
7.1.00.0100.07022.25
7.0.200.0030.00616.44
7.0.140.0070.07022.10
7.0.60.0000.08020.01
7.0.50.0030.07317.80
7.0.40.0030.08320.23
7.0.30.0230.04720.17
7.0.20.0300.05720.06
7.0.10.0070.05320.09
7.0.00.0070.08320.09
5.6.280.0100.06721.14
5.6.210.0130.07320.48
5.6.200.0070.09018.12
5.6.190.0130.08320.45
5.6.180.0470.05320.49
5.6.170.0130.05020.42
5.6.160.0070.04720.70
5.6.150.0100.07718.16
5.6.140.0070.06318.12
5.6.130.0030.04318.21
5.6.120.0030.07321.03
5.6.110.0130.06321.11
5.6.100.0100.08021.03
5.6.90.0070.05720.96
5.6.80.0100.05720.39
5.5.350.0200.09320.48
5.5.340.0100.07717.89
5.5.330.0030.04320.36
5.5.320.0470.06320.51
5.5.310.0400.08020.30
5.5.300.0000.04718.00
5.5.290.0000.04318.02
5.5.280.0100.07720.89
5.5.270.0100.06020.63
5.5.260.0170.07720.79
5.5.250.0100.08020.70
5.5.240.0030.08020.25
5.4.450.0730.06719.45
5.4.440.0830.06019.09
5.4.430.0100.05319.63
5.4.420.0170.04719.50
5.4.410.0130.05018.91
5.4.400.0230.04718.74
5.4.390.0070.05318.74
5.4.380.0130.05718.68
5.4.370.0000.06318.44
5.4.360.0130.04318.58
5.4.350.0090.03511.97
5.4.340.0110.06111.97
5.4.320.0040.03912.45
5.4.310.0080.04912.45
5.4.300.0070.03612.45
5.4.290.0070.04312.43
5.4.280.0070.03512.33
5.4.270.0080.05112.33
5.4.260.0060.05512.33
5.4.250.0090.04812.33
5.4.240.0090.05112.33
5.4.230.0090.05012.32
5.4.220.0050.03812.32
5.4.210.0070.03412.32
5.4.200.0040.04312.32
5.4.190.0060.03812.32
5.4.180.0080.05212.32
5.4.170.0100.03512.33
5.4.160.0080.05012.32
5.4.150.0140.04012.32
5.4.140.0080.04312.00
5.4.130.0070.04611.99
5.4.120.0120.03211.95
5.4.110.0090.04911.95
5.4.100.0080.04811.95
5.4.90.0090.03511.95
5.4.80.0090.03611.95
5.4.70.0130.02911.95
5.4.60.0070.03311.95
5.4.50.0070.03411.95
5.4.40.0040.03811.93
5.4.30.0080.03511.93
5.4.20.0060.05311.93
5.4.10.0070.05011.93
5.4.00.0100.05011.41
5.3.290.0060.04012.80
5.3.280.0050.04012.71
5.3.270.0080.03712.72
5.3.260.0120.04112.72
5.3.250.0070.04212.72
5.3.240.0090.04012.72
5.3.230.0080.03512.71
5.3.220.0060.04212.68
5.3.210.0080.05612.68
5.3.200.0080.04112.68
5.3.190.0120.04812.68
5.3.180.0070.04512.67
5.3.170.0160.07212.67
5.3.160.0080.04712.67
5.3.150.0070.04812.67
5.3.140.0080.03612.66
5.3.130.0050.04012.66
5.3.120.0050.04012.66
5.3.110.0070.04812.65
5.3.100.0090.03712.12
5.3.90.0100.03112.09
5.3.80.0090.04012.07
5.3.70.0090.03512.08
5.3.60.0090.04012.06
5.3.50.0050.05012.00
5.3.40.0060.03912.00
5.3.30.0060.04311.94
5.3.20.0070.03411.72
5.3.10.0070.03411.69
5.3.00.0050.03811.67
5.2.170.0030.0319.17
5.2.160.0030.0319.18
5.2.150.0050.0319.18
5.2.140.0060.0309.18
5.2.130.0070.0279.14
5.2.120.0050.0329.14
5.2.110.0080.0399.14
5.2.100.0100.0349.13
5.2.90.0040.0319.14
5.2.80.0110.0259.13
5.2.70.0050.0319.13
5.2.60.0040.0319.09
5.2.50.0040.0319.05
5.2.40.0040.0349.03
5.2.30.0070.0279.00
5.2.20.0030.0318.99
5.2.10.0050.0288.91
5.2.00.0080.0278.78
5.1.60.0070.0228.06
5.1.50.0030.0278.06
5.1.40.0060.0298.04
5.1.30.0060.0338.39
5.1.20.0080.0268.41
5.1.10.0070.0228.13
5.1.00.0060.0248.13
5.0.50.0020.0246.61
5.0.40.0040.0196.47
5.0.30.0020.0336.29
5.0.20.0020.0206.25
5.0.10.0020.0216.23
5.0.00.0080.0266.23
4.4.90.0010.0174.78
4.4.80.0040.0144.75
4.4.70.0020.0204.76
4.4.60.0030.0164.76
4.4.50.0080.0114.77
4.4.40.0030.0254.71
4.4.30.0060.0124.76
4.4.20.0050.0144.85
4.4.10.0020.0164.85
4.4.00.0010.0264.76
4.3.110.0020.0174.67
4.3.100.0030.0154.67
4.3.90.0020.0164.63
4.3.80.0040.0264.59
4.3.70.0020.0164.63
4.3.60.0030.0224.63
4.3.50.0070.0194.63
4.3.40.0030.0344.54
4.3.30.0040.0193.28
4.3.20.0040.0143.25
4.3.10.0020.0163.21
4.3.00.0130.0237.12