3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $fruits = array("d" => "lemon", "a" => "orange", "b" => "banana", "c" => "apple"); function test(&$item, $key) { if($item == 'orange') $item=''; } array_walk($fruits, 'test'); var_dump($fruits);

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.0290.00398.97
7.3.0rc30.0200.00316.73
7.3.0beta10.0000.00912.68
7.3.0alpha10.0030.00712.88
7.2.60.0040.01116.70
7.2.00.0000.01319.35
7.1.200.0120.00015.51
7.1.70.0030.00917.01
7.1.60.0030.00717.29
7.1.50.0200.01434.77
7.1.00.0070.06722.32
7.0.200.0100.00716.98
7.0.140.0030.07322.01
7.0.60.0030.06719.93
7.0.50.0070.07017.77
7.0.40.0100.08320.22
7.0.30.0370.06720.12
7.0.20.0270.06720.07
7.0.10.0330.04720.23
7.0.00.0100.04320.10
5.6.280.0100.06721.10
5.6.210.0070.06020.70
5.6.200.0130.07018.18
5.6.190.0100.07320.48
5.6.180.0000.05020.39
5.6.170.0230.06020.41
5.6.160.0030.06020.62
5.6.150.0130.07318.30
5.6.140.0100.08318.12
5.6.130.0100.05718.24
5.6.120.0070.08321.03
5.6.110.0130.07320.99
5.6.100.0070.05321.12
5.6.90.0070.04020.99
5.6.80.0070.06320.38
5.6.70.0230.03720.53
5.5.350.0070.08720.41
5.5.340.0200.06718.09
5.5.330.0000.09320.47
5.5.320.0300.05720.27
5.5.310.0330.05320.27
5.5.300.0070.08318.08
5.5.290.0100.08017.94
5.5.280.0000.06320.73
5.5.270.0100.07720.79
5.5.260.0200.07720.98
5.5.250.0130.07720.71
5.5.240.0000.04020.36
5.4.450.0130.04737.49
5.4.440.0270.04734.80
5.4.430.0400.04033.62
5.4.420.0300.04733.62
5.4.410.0230.04733.60
5.4.400.0370.04331.27
5.4.390.0400.04731.25
5.4.380.0400.05318.75
5.4.370.0270.05318.59
5.4.360.0270.05018.63
5.4.350.0370.05318.76
5.4.340.0430.04718.61
5.4.320.0050.04512.50
5.4.310.0040.04012.50
5.4.300.0050.03612.51
5.4.290.0030.04012.50
5.4.280.0040.03712.39
5.4.270.0130.03412.40
5.4.260.0050.03812.40
5.4.250.0060.03812.40
5.4.240.0060.03612.40
5.4.230.0070.03612.39
5.4.220.0070.03412.39
5.4.210.0020.03912.39
5.4.200.0050.03812.39
5.4.190.0070.03412.39
5.4.180.0070.03412.39
5.4.170.0070.03712.40
5.4.160.0050.03612.39
5.4.150.0060.03812.38
5.4.140.0040.04112.07
5.4.130.0080.03412.06
5.4.120.0030.03812.02
5.4.110.0060.03412.02
5.4.100.0040.03612.01
5.4.90.0040.03812.01
5.4.80.0070.03412.01
5.4.70.0070.03312.01
5.4.60.0060.03512.00
5.4.50.0060.03512.00
5.4.40.0070.03412.00
5.4.30.0040.03711.99
5.4.20.0070.03411.99
5.4.10.0050.03811.99
5.4.00.0020.03811.48
5.3.290.0040.04912.80
5.3.280.0050.03912.71
5.3.270.0080.03712.72
5.3.260.0080.03612.71
5.3.250.0070.04112.72
5.3.240.0040.04712.72
5.3.230.0070.04112.71
5.3.220.0080.03812.68
5.3.210.0080.03612.68
5.3.200.0070.03612.68
5.3.190.0070.03712.68
5.3.180.0030.03912.67
5.3.170.0030.04112.67
5.3.160.0090.04212.67
5.3.150.0060.04012.67
5.3.140.0040.03812.66
5.3.130.0070.04112.66
5.3.120.0050.04512.66
5.3.110.0100.03412.66
5.3.100.0050.04012.12
5.3.90.0040.03812.09
5.3.80.0100.03412.09
5.3.70.0120.03112.09
5.3.60.0090.03512.07
5.3.50.0080.03312.02
5.3.40.0060.03612.02
5.3.30.0090.03111.98
5.3.20.0020.03911.76
5.3.10.0060.03411.73
5.3.00.0050.03611.71
5.2.170.0050.0369.21
5.2.160.0050.0299.22
5.2.150.0040.0319.21
5.2.140.0030.0389.21
5.2.130.0040.0289.17
5.2.120.0040.0289.17
5.2.110.0050.0319.18
5.2.100.0050.0329.18
5.2.90.0020.0329.17
5.2.80.0070.0299.16
5.2.70.0060.0299.17
5.2.60.0030.0349.13
5.2.50.0040.0319.09
5.2.40.0060.0279.07
5.2.30.0040.0299.04
5.2.20.0030.0319.03
5.2.10.0020.0308.94
5.2.00.0060.0288.80
5.1.60.0030.0248.09
5.1.50.0070.0268.08
5.1.40.0060.0268.06
5.1.30.0070.0268.41
5.1.20.0030.0318.43
5.1.10.0050.0258.16
5.1.00.0030.0268.16
5.0.50.0040.0206.63
5.0.40.0040.0186.50
5.0.30.0050.0356.31
5.0.20.0050.0216.27
5.0.10.0050.0226.26
5.0.00.0030.0336.25
4.4.90.0030.0154.78
4.4.80.0030.0184.76
4.4.70.0020.0154.75
4.4.60.0060.0184.76
4.4.50.0030.0154.77
4.4.40.0040.0304.71
4.4.30.0040.0204.76
4.4.20.0030.0204.84
4.4.10.0020.0204.85
4.4.00.0030.0254.76
4.3.110.0040.0144.66
4.3.100.0040.0134.66
4.3.90.0040.0124.63
4.3.80.0030.0304.58
4.3.70.0030.0204.63
4.3.60.0000.0234.63
4.3.50.0040.0194.63
4.3.40.0040.0224.54
4.3.30.0030.0173.31
4.3.20.0010.0193.28
4.3.10.0010.0163.25
4.3.00.0000.02031.25