3v4l.org

run code in 300+ PHP versions simultaneously
<?php $nu_array = null; $callback = function ( $item ) use(&$nu_array) { $nu_array[] = $item; }; $array = array('a',array(1,2,3),'b',array('c',4,5,array(6,7,array(8)))); array_walk_recursive($array, $callback); print_r($nu_array); /** Array ( [0] => apple [1] => sky [2] => juice ) **/

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.0100.01018.32
8.3.50.0100.00821.14
8.3.40.0140.00018.69
8.3.30.0030.01919.17
8.3.20.0070.00020.18
8.3.10.0040.00420.53
8.3.00.0050.00319.25
8.2.180.0070.01016.88
8.2.170.0140.00022.96
8.2.160.0070.01020.52
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0050.00222.06
8.2.110.0050.00520.39
8.2.100.0080.00318.02
8.2.90.0040.00419.13
8.2.80.0030.00517.97
8.2.70.0000.00817.63
8.2.60.0040.00418.04
8.2.50.0030.00918.07
8.2.40.0050.00318.34
8.2.30.0030.00618.06
8.2.20.0000.00817.75
8.2.10.0060.00318.19
8.2.00.0050.00217.74
8.1.280.0150.00625.92
8.1.270.0040.00421.88
8.1.260.0060.00326.35
8.1.250.0100.00728.09
8.1.240.0030.00623.85
8.1.230.0080.00319.01
8.1.220.0030.00617.74
8.1.210.0000.00818.77
8.1.200.0030.00617.48
8.1.190.0000.00817.00
8.1.180.0000.00718.10
8.1.170.0050.00318.50
8.1.160.0070.00022.06
8.1.150.0000.00718.86
8.1.140.0070.00017.36
8.1.130.0000.00717.89
8.1.120.0000.00717.51
8.1.110.0070.00017.38
8.1.100.0040.00417.46
8.1.90.0000.00717.39
8.1.80.0000.00717.50
8.1.70.0030.00317.37
8.1.60.0000.00817.47
8.1.50.0040.00417.55
8.1.40.0060.00317.51
8.1.30.0040.00417.51
8.1.20.0040.00417.67
8.1.10.0040.00417.39
8.1.00.0040.00417.37
8.0.300.0050.00218.77
8.0.290.0040.00416.75
8.0.280.0070.00018.36
8.0.270.0000.01016.78
8.0.260.0060.00017.31
8.0.250.0040.00416.92
8.0.240.0070.00017.00
8.0.230.0000.00716.93
8.0.220.0030.00316.88
8.0.210.0070.00016.93
8.0.200.0050.00216.82
8.0.190.0000.00716.98
8.0.180.0000.00716.90
8.0.170.0030.00516.91
8.0.160.0030.00716.92
8.0.150.0040.00416.70
8.0.140.0070.00016.76
8.0.130.0060.00213.41
8.0.120.0000.00716.80
8.0.110.0000.00716.82
8.0.100.0000.00716.88
8.0.90.0030.00516.93
8.0.80.0060.01616.85
8.0.70.0000.00716.79
8.0.60.0000.00816.91
8.0.50.0070.00016.78
8.0.30.0080.01117.10
8.0.20.0090.01417.40
8.0.10.0040.00417.13
8.0.00.0070.00916.70
7.4.330.0000.00515.03
7.4.320.0060.00016.45
7.4.300.0000.00616.62
7.4.290.0070.00016.59
7.4.280.0070.00316.65
7.4.270.0000.00716.64
7.4.260.0030.00316.60
7.4.250.0040.00416.45
7.4.240.0020.00516.47
7.4.230.0040.00216.54
7.4.220.0070.01516.55
7.4.210.0090.00616.43
7.4.200.0000.00716.55
7.4.160.0100.00716.41
7.4.150.0060.01217.40
7.4.140.0120.00817.86
7.4.130.0090.00916.61
7.4.120.0150.00616.53
7.4.110.0100.00716.64
7.4.100.0070.01016.60
7.4.90.0140.00316.65
7.4.80.0060.01219.39
7.4.70.0140.00716.38
7.4.60.0100.00716.56
7.4.50.0030.00316.20
7.4.40.0040.01216.59
7.4.30.0100.00716.54
7.4.00.0030.01215.11
7.3.330.0020.00213.31
7.3.320.0020.00213.30
7.3.310.0000.00716.19
7.3.300.0000.00616.17
7.3.290.0060.00616.34
7.3.280.0030.01516.24
7.3.270.0030.01517.40
7.3.260.0160.00016.45
7.3.250.0090.00816.47
7.3.240.0130.00316.37
7.3.230.0160.00016.39
7.3.210.0130.00316.35
7.3.200.0070.01819.39
7.3.190.0150.00616.51
7.3.180.0080.01216.43
7.3.170.0080.00816.33
7.3.160.0070.01016.21
7.3.10.0030.00616.70
7.3.00.0090.00616.64
7.2.330.0040.01216.41
7.2.320.0100.01016.31
7.2.310.0130.00316.48
7.2.300.0060.01216.60
7.2.290.0090.01316.67
7.2.130.0030.00716.65
7.2.120.0030.00716.73
7.2.110.0100.00716.80
7.2.100.0090.00316.98
7.2.90.0030.00716.61
7.2.80.0070.00716.66
7.2.70.0070.00416.74
7.2.60.0060.00316.98
7.2.50.0070.00717.00
7.2.40.0070.00716.91
7.2.30.0100.00617.02
7.2.20.0080.00416.78
7.2.10.0030.00716.66
7.2.00.0080.00316.99
7.1.250.0030.01015.79
7.1.70.0040.00417.04
7.1.60.0100.01319.32
7.1.50.0140.01016.70
7.1.00.0000.08022.45
7.0.200.0030.00716.41
7.0.140.0130.06322.21
7.0.60.0130.08019.83
7.0.50.0170.04317.79
7.0.40.0070.05720.36
7.0.30.0270.04020.24
7.0.20.0300.07320.10
7.0.10.0100.08720.20
7.0.00.0030.05020.11
5.6.280.0170.05721.07
5.6.210.0100.07720.51
5.6.200.0100.07018.25
5.6.190.0170.07020.47
5.6.180.0370.04720.55
5.6.170.0330.07320.51
5.6.160.0070.07720.46
5.6.150.0000.09018.27
5.6.140.0100.06318.21
5.6.130.0070.07018.28
5.6.120.0100.04720.79
5.6.110.0170.07721.00
5.6.100.0070.04321.04
5.6.90.0030.04020.97
5.6.80.0070.06720.36
5.5.350.0100.07720.53
5.5.340.0070.04017.96
5.5.330.0000.05720.57
5.5.320.0370.06320.20
5.5.310.0400.05720.30
5.5.300.0070.08017.98
5.5.290.0070.07717.91
5.5.280.0030.06320.88
5.5.270.0000.05320.87
5.5.260.0130.08720.80
5.5.250.0070.03720.68
5.5.240.0200.07720.23
5.4.450.0600.03019.32
5.4.440.0730.05019.41
5.4.430.0630.04319.30
5.4.420.0670.00019.42
5.4.410.0870.00019.41
5.4.400.0600.00019.02
5.4.390.0630.00019.16
5.4.380.0630.00019.01
5.4.370.0670.00019.25
5.4.360.0630.00019.03
5.4.350.0670.00019.05
5.4.340.0630.00019.06
5.4.320.0100.03912.51
5.4.310.0070.04612.50
5.4.300.0050.04212.50
5.4.290.0070.04012.50
5.4.280.0060.03512.39
5.4.270.0060.04012.39
5.4.260.0060.03712.40
5.4.250.0070.03612.39
5.4.240.0040.03912.39
5.4.230.0020.04112.39
5.4.220.0050.03712.39
5.4.210.0060.03512.39
5.4.200.0090.04712.39
5.4.190.0090.03312.38
5.4.180.0080.03412.39
5.4.170.0070.03412.39
5.4.160.0040.03812.39
5.4.150.0060.03512.38
5.4.140.0050.03812.07
5.4.130.0100.03212.06
5.4.120.0060.03512.02
5.4.110.0060.03412.01
5.4.100.0070.03412.02
5.4.90.0050.03612.01
5.4.80.0060.03712.01
5.4.70.0090.03412.00
5.4.60.0060.03512.01
5.4.50.0030.03912.01
5.4.40.0080.03312.00
5.4.30.0090.03311.99
5.4.20.0050.03512.00
5.4.10.0030.03612.00
5.4.00.0080.03311.48
5.3.290.0060.03712.80
5.3.280.0070.03612.71
5.3.270.0050.03912.73
5.3.260.0050.04012.72
5.3.250.0030.04112.72
5.3.240.0030.03912.72
5.3.230.0070.03612.71
5.3.220.0030.03912.68
5.3.210.0090.05212.68
5.3.200.0090.03912.68
5.3.190.0070.05012.68
5.3.180.0070.03512.68
5.3.170.0030.04412.67
5.3.160.0080.03912.68
5.3.150.0050.03912.67
5.3.140.0060.03612.66
5.3.130.0060.04012.66
5.3.120.0060.03812.66
5.3.110.0110.03312.66
5.3.100.0050.04212.12
5.3.90.0050.04012.10
5.3.80.0050.03712.09
5.3.70.0070.04112.09
5.3.60.0050.04012.07
5.3.50.0020.04012.02
5.3.40.0080.03212.02
5.3.30.0100.03111.98
5.3.20.0070.04011.76
5.3.10.0010.03911.73
5.3.00.0070.03511.72
5.2.170.0050.0299.18
5.2.160.0070.0279.18
5.2.150.0040.0319.18
5.2.140.0050.0309.18
5.2.130.0050.0289.14
5.2.120.0040.0289.14
5.2.110.0080.0319.15
5.2.100.0050.0379.14
5.2.90.0040.0389.14
5.2.80.0050.0349.14
5.2.70.0040.0339.14
5.2.60.0060.0369.09
5.2.50.0060.0359.06
5.2.40.0050.0279.04
5.2.30.0000.0349.01
5.2.20.0050.0299.01
5.2.10.0030.0298.93
5.2.00.0070.0268.79
5.1.60.0040.0248.06
5.1.50.0040.0248.06
5.1.40.0050.0238.05
5.1.30.0050.0258.40
5.1.20.0000.0308.42
5.1.10.0040.0258.14
5.1.00.0050.0248.14
5.0.50.0020.0216.62
5.0.40.0020.0206.48
5.0.30.0050.0356.29
5.0.20.0030.0286.26
5.0.10.0040.0196.24
5.0.00.0040.0296.23
4.4.90.0020.0154.78
4.4.80.0010.0164.75
4.4.70.0040.0144.76
4.4.60.0050.0134.75
4.4.50.0030.0254.77
4.4.40.0010.0264.71
4.4.30.0030.0194.76
4.4.20.0040.0144.84
4.4.10.0030.0254.85
4.4.00.0060.0214.76
4.3.110.0020.0154.67
4.3.100.0020.0154.66
4.3.90.0010.0154.63
4.3.80.0020.0244.59
4.3.70.0030.0164.63
4.3.60.0060.0204.63
4.3.50.0020.0174.63
4.3.40.0010.0254.54
4.3.30.0010.0173.28
4.3.20.0020.0153.26
4.3.10.0030.0213.22
4.3.00.0070.01313.59

preferences:
56.25 ms | 401 KiB | 5 Q