3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fruits = array("d" => "lemon", "a" => "orange", "b" => "banana", "c" => "apple"); function test_print($item, $key) { echo "$item<br />"; } array_walk($fruits, 'test_print'); ?>

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).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0070.01318.31
8.3.50.0120.00721.08
8.3.40.0000.01418.55
8.3.30.0070.00718.96
8.3.20.0060.00320.07
8.3.10.0050.00323.70
8.3.00.0080.00019.22
8.2.180.0040.01216.37
8.2.170.0170.00022.96
8.2.160.0120.00320.35
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0050.00319.81
8.2.110.0000.01122.25
8.2.100.0000.01120.53
8.2.90.0000.00719.07
8.2.80.0040.00417.97
8.2.70.0040.00417.61
8.2.60.0040.00417.80
8.2.50.0060.00318.07
8.2.40.0030.00521.01
8.2.30.0000.00718.30
8.2.20.0070.00017.55
8.2.10.0040.00418.20
8.2.00.0040.00417.72
8.1.280.0130.00725.92
8.1.270.0060.00323.91
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0090.00022.58
8.1.230.0090.00320.77
8.1.220.0000.00817.79
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0040.00417.00
8.1.180.0080.00018.10
8.1.170.0040.00418.56
8.1.160.0020.00521.90
8.1.150.0040.00418.44
8.1.140.0000.00817.41
8.1.130.0030.00317.87
8.1.120.0030.00317.39
8.1.110.0040.00417.27
8.1.100.0030.00317.29
8.1.90.0040.00417.39
8.1.80.0040.00417.38
8.1.70.0070.00017.35
8.1.60.0070.00317.53
8.1.50.0080.00017.44
8.1.40.0060.00317.42
8.1.30.0040.00417.55
8.1.20.0040.00417.55
8.1.10.0060.00317.53
8.1.00.0000.00717.41
8.0.300.0000.00718.77
8.0.290.0080.00016.75
8.0.280.0030.00318.43
8.0.270.0030.00317.16
8.0.260.0030.00317.28
8.0.250.0030.00316.93
8.0.240.0000.00716.84
8.0.230.0000.00716.82
8.0.220.0030.00316.79
8.0.210.0000.00716.85
8.0.200.0030.00316.92
8.0.190.0070.00316.90
8.0.180.0070.00016.96
8.0.170.0030.00516.88
8.0.160.0030.00516.88
8.0.150.0070.00016.82
8.0.140.0000.00816.73
8.0.130.0000.00613.36
8.0.120.0060.00316.92
8.0.110.0040.00416.77
8.0.100.0070.00016.66
8.0.90.0070.00016.66
8.0.80.0030.01616.79
8.0.70.0030.00616.73
8.0.60.0000.00816.77
8.0.50.0040.00416.82
8.0.30.0160.00617.01
8.0.20.0110.00717.40
8.0.10.0050.00216.85
8.0.00.0060.01416.87
7.4.330.0020.00215.00
7.4.320.0000.00816.48
7.4.300.0050.00216.38
7.4.290.0000.00816.53
7.4.280.0000.00716.37
7.4.270.0070.00016.37
7.4.260.0030.00316.48
7.4.250.0030.00516.51
7.4.240.0020.00516.53
7.4.230.0070.00016.50
7.4.220.0060.01216.55
7.4.210.0130.00316.42
7.4.200.0000.00716.41
7.4.190.0070.00016.61
7.4.160.0080.00816.58
7.4.150.0070.01017.40
7.4.140.0070.01517.86
7.4.130.0070.01016.44
7.4.120.0100.00716.50
7.4.110.0070.01016.53
7.4.100.0160.00316.49
7.4.90.0040.01516.46
7.4.80.0040.01219.39
7.4.70.0070.01016.64
7.4.60.0080.01116.42
7.4.50.0030.00616.42
7.4.40.0100.00516.54
7.4.30.0100.00516.35
7.4.00.0090.00314.82
7.3.330.0000.00513.16
7.3.320.0000.00512.98
7.3.310.0030.00516.28
7.3.300.0050.00216.14
7.3.290.0030.01016.28
7.3.280.0100.00816.25
7.3.270.0120.00617.40
7.3.260.0110.01216.29
7.3.250.0100.00716.33
7.3.240.0090.01516.44
7.3.230.0110.00616.39
7.3.210.0130.00316.39
7.3.200.0110.01119.39
7.3.190.0030.01316.47
7.3.180.0150.00016.25
7.3.170.0090.01216.27
7.3.160.0150.00416.12
7.3.120.0070.00714.55
7.2.330.0150.00816.67
7.2.320.0030.02816.64
7.2.310.0140.00316.57
7.2.300.0090.00916.48
7.2.290.0070.01116.27
7.2.00.0040.00819.33
7.1.100.0040.00817.98
7.1.70.0000.00717.01
7.1.60.0100.01419.46
7.1.50.0110.01116.86
7.1.00.0000.07722.53
7.0.200.0100.00316.82
7.0.140.0030.07322.04
7.0.60.0100.07019.82
7.0.50.0000.09317.86
7.0.40.0030.07019.96
7.0.30.0370.08020.07
7.0.20.0200.04020.08
7.0.10.0130.08020.12
7.0.00.0170.07720.25
5.6.280.0100.06721.03
5.6.210.0070.06020.55
5.6.200.0030.04318.18
5.6.190.0000.06020.34
5.6.180.0130.05020.47
5.6.170.0330.08320.52
5.6.160.0030.09020.43
5.6.150.0070.05718.15
5.6.140.0030.04318.27
5.6.130.0100.03318.28
5.6.120.0000.08321.02
5.6.110.0070.08321.14
5.6.100.0070.04320.95
5.6.90.0170.05020.97
5.6.80.0070.08320.39
5.5.350.4270.03720.43
5.5.340.0000.04317.94
5.5.330.0100.06020.31
5.5.320.0330.06720.30
5.5.310.0330.05320.30
5.5.300.0100.07718.04
5.5.290.0100.06318.03
5.5.280.0070.04020.90
5.5.270.0070.06020.64
5.5.260.0000.09020.79
5.5.250.0100.04720.75
5.5.240.0030.08020.20
5.4.450.0500.03019.33
5.4.440.0670.03748.51
5.4.430.0370.04741.42
5.4.420.0300.04339.32
5.4.410.0470.04019.04
5.4.400.0170.04335.19
5.4.390.0300.04732.62
5.4.380.0170.05318.71
5.4.370.0030.06318.75
5.4.360.0100.06318.57
5.4.350.0170.05318.61
5.4.340.0230.04018.55
5.4.320.0070.03612.50
5.4.310.0100.04712.50
5.4.300.0070.04612.50
5.4.290.0070.04412.50
5.4.280.0080.03612.40
5.4.270.0060.04112.40
5.4.260.0120.04312.39
5.4.250.0050.04112.40
5.4.240.0040.04112.39
5.4.230.0050.04012.39
5.4.220.0050.03812.39
5.4.210.0080.03512.39
5.4.200.0090.03812.39
5.4.190.0110.03412.39
5.4.180.0070.03812.39
5.4.170.0050.03912.40
5.4.160.0100.03512.39
5.4.150.0110.04712.39
5.4.140.0090.04212.07
5.4.130.0080.03912.06
5.4.120.0050.04712.02
5.4.110.0060.05012.01
5.4.100.0050.04312.01
5.4.90.0090.03912.02
5.4.80.0100.03612.01
5.4.70.0070.03712.01
5.4.60.0080.03712.01
5.4.50.0090.04112.01
5.4.40.0090.03512.00
5.4.30.0040.04012.00
5.4.20.0110.04111.99
5.4.10.0100.03212.00
5.4.00.0090.03511.48
5.3.290.0030.04212.80
5.3.280.0060.03912.71
5.3.270.0080.03812.73
5.3.260.0060.04312.72
5.3.250.0070.04812.72
5.3.240.0090.05012.72
5.3.230.0080.05112.71
5.3.220.0050.04412.68
5.3.210.0060.04312.68
5.3.200.0040.05412.68
5.3.190.0080.05112.67
5.3.180.0070.05012.67
5.3.170.0110.04812.67
5.3.160.0120.04812.67
5.3.150.0100.05012.68
5.3.140.0120.04612.66
5.3.130.0100.04812.65
5.3.120.0050.04712.66
5.3.110.0090.04112.66
5.3.100.0070.04212.12
5.3.90.0070.04812.09
5.3.80.0090.03612.09
5.3.70.0070.03912.09
5.3.60.0070.03812.08
5.3.50.0070.03812.02
5.3.40.0080.03612.02
5.3.30.0050.03811.97
5.3.20.0090.03611.77
5.3.10.0080.03811.72
5.3.00.0080.04011.72
5.2.170.0040.0369.21
5.2.160.0060.0309.21
5.2.150.0030.0379.22
5.2.140.0030.0349.21
5.2.130.0090.0329.18
5.2.120.0050.0349.17
5.2.110.0060.0309.18
5.2.100.0050.0319.17
5.2.90.0090.0289.17
5.2.80.0050.0339.17
5.2.70.0070.0319.16
5.2.60.0080.0409.12
5.2.50.0070.0439.10
5.2.40.0080.0389.07
5.2.30.0090.0409.04
5.2.20.0070.0369.03
5.2.10.0100.0328.94
5.2.00.0070.0338.80
5.1.60.0070.0308.09
5.1.50.0070.0328.08
5.1.40.0100.0338.06
5.1.30.0050.0408.41
5.1.20.0040.0418.43
5.1.10.0060.0368.16
5.1.00.0080.0368.16
5.0.50.0080.0266.63
5.0.40.0060.0276.50
5.0.30.0060.0426.31
5.0.20.0060.0266.28
5.0.10.0050.0296.26
5.0.00.0040.0416.25
4.4.90.0020.0204.78
4.4.80.0020.0184.75
4.4.70.0040.0154.75
4.4.60.0040.0154.76
4.4.50.0040.0154.77
4.4.40.0020.0304.71
4.4.30.0030.0194.76
4.4.20.0060.0184.84
4.4.10.0040.0144.85
4.4.00.0030.0254.76
4.3.110.0030.0164.67
4.3.100.0040.0144.67
4.3.90.0050.0134.63
4.3.80.0020.0304.59
4.3.70.0050.0144.63
4.3.60.0040.0144.63
4.3.50.0030.0204.62
4.3.40.0100.0314.54
4.3.30.0020.0213.30
4.3.20.0030.0203.27
4.3.10.0030.0203.24
4.3.00.0000.02031.64

preferences:
39.11 ms | 401 KiB | 5 Q