3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myArray = array( "a", array( "a", "b", array( "a", "b", "c", array( "a", "b", "c", "d", array("the end") ) ) ) ); function manipulate(&$val) { $val .= " appended"; } array_walk_recursive($myArray, 'manipulate', $myArray); var_dump($myArray);

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.01118.31
8.3.50.0120.00321.99
8.3.40.0140.00418.79
8.3.30.0040.01218.88
8.3.20.0040.00420.24
8.3.10.0080.00021.77
8.3.00.0030.00517.80
8.2.180.0150.00318.17
8.2.170.0170.00318.83
8.2.160.0040.01120.52
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0050.00326.16
8.2.120.0040.00421.02
8.2.110.0000.00919.38
8.2.100.0050.00518.03
8.2.90.0050.00319.02
8.2.80.0030.00617.97
8.2.70.0080.00017.25
8.2.60.0030.00618.04
8.2.50.0000.00818.10
8.2.40.0040.00420.65
8.2.30.0000.00718.24
8.2.20.0050.00217.68
8.2.10.0040.00417.93
8.2.00.0000.01017.73
8.1.280.0120.00625.92
8.1.270.0070.00323.79
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00622.54
8.1.230.0070.00417.45
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0080.00417.35
8.1.190.0080.00017.40
8.1.180.0040.00418.10
8.1.170.0030.00618.52
8.1.160.0000.00722.07
8.1.150.0000.00718.73
8.1.140.0040.00417.32
8.1.130.0070.00017.86
8.1.120.0030.00317.39
8.1.110.0040.00417.42
8.1.100.0000.00717.38
8.1.90.0030.00317.39
8.1.80.0040.00417.36
8.1.70.0000.00917.41
8.1.60.0060.00317.44
8.1.50.0030.00517.41
8.1.40.0040.00417.45
8.1.30.0050.00317.62
8.1.20.0080.00017.57
8.1.10.0040.00417.38
8.1.00.0060.00317.41
8.0.300.0000.00718.77
8.0.290.0000.00816.61
8.0.280.0030.00318.43
8.0.270.0000.00717.11
8.0.260.0030.00317.08
8.0.250.0000.00716.80
8.0.240.0040.00416.89
8.0.230.0000.00716.77
8.0.220.0000.00816.73
8.0.210.0030.00316.76
8.0.200.0000.00716.82
8.0.190.0070.00016.77
8.0.180.0040.00416.88
8.0.170.0000.00716.86
8.0.160.0030.00516.92
8.0.150.0040.00416.75
8.0.140.0000.00716.79
8.0.130.0000.00613.26
8.0.120.0050.00316.78
8.0.110.0000.00816.77
8.0.100.0080.00016.78
8.0.90.0050.00216.77
8.0.80.0100.01016.74
8.0.70.0020.00516.63
8.0.60.0000.00816.69
8.0.50.0040.00416.60
8.0.30.0150.00716.98
8.0.20.0120.00617.40
8.0.10.0050.00216.86
8.0.00.0110.00716.58
7.4.330.0000.00515.00
7.4.320.0030.00316.55
7.4.300.0030.00316.42
7.4.290.0030.00316.51
7.4.280.0000.00716.33
7.4.270.0030.00316.46
7.4.260.0100.00016.41
7.4.250.0000.00716.30
7.4.240.0030.00316.40
7.4.230.0000.00716.58
7.4.220.0140.00416.47
7.4.210.0090.00516.52
7.4.200.0040.00416.61
7.4.160.0080.00816.46
7.4.150.0140.00517.40
7.4.140.0050.01317.86
7.4.130.0110.00616.36
7.4.120.0050.01316.57
7.4.110.0170.00016.24
7.4.100.0060.01016.27
7.4.90.0160.00316.36
7.4.80.0160.00319.39
7.4.70.0100.00616.39
7.4.60.0030.01416.28
7.4.50.0030.00616.31
7.4.40.0070.01016.47
7.4.30.0120.00416.43
7.4.00.0040.01214.78
7.3.330.0000.00513.13
7.3.320.0050.00012.97
7.3.310.0000.00715.99
7.3.300.0000.00716.06
7.3.290.0110.00316.17
7.3.280.0160.00516.15
7.3.270.0110.00517.40
7.3.260.0090.01216.17
7.3.250.0140.01016.41
7.3.240.0060.01216.53
7.3.230.0160.00316.39
7.3.210.0100.00716.14
7.3.200.0120.00619.39
7.3.190.0100.00716.32
7.3.180.0190.00016.44
7.3.170.0060.01116.27
7.3.160.0030.01316.11
7.3.120.0050.01114.88
7.3.110.0080.01114.69
7.3.100.0040.01114.73
7.3.90.0070.01014.43
7.3.80.0100.00314.53
7.3.70.0030.01214.75
7.3.60.0030.01014.47
7.3.50.0040.00714.57
7.3.40.0060.00914.72
7.3.30.0040.01114.61
7.3.20.0140.00016.54
7.3.10.0040.00716.35
7.3.00.0060.00616.34
7.2.330.0140.00416.60
7.2.320.0130.00316.60
7.2.310.0090.00916.41
7.2.300.0130.00316.54
7.2.290.0140.00316.28
7.2.250.0070.01314.99
7.2.240.0070.01014.73
7.2.230.0080.00414.63
7.2.220.0070.01014.98
7.2.210.0060.00314.95
7.2.200.0070.00314.73
7.2.190.0030.01314.66
7.2.180.0080.00414.77
7.2.170.0100.00714.77
7.2.60.0110.00416.65
7.2.00.0070.00319.23
7.1.330.0070.00715.99
7.1.320.0030.00615.90
7.1.310.0030.00915.57
7.1.300.0080.00415.60
7.1.290.0080.00315.75
7.1.280.0030.01015.63
7.1.270.0060.00615.78
7.1.260.0080.00415.71
7.1.200.0060.00615.90
7.1.100.0000.01818.36
7.1.70.0090.00917.00
7.1.60.0070.01117.14
7.1.50.0280.00934.66
7.1.00.0030.07722.27
7.0.200.0000.00916.57
7.0.140.0070.07022.04
7.0.60.0130.08019.93
7.0.50.0030.05017.89
7.0.40.0100.05719.96
7.0.30.0270.08320.12
7.0.20.0370.08020.22
7.0.10.0100.06720.30
7.0.00.0100.06720.19
5.6.280.0130.06321.08
5.6.210.0100.06020.69
5.6.200.0030.07318.27
5.6.190.0100.03720.55
5.6.180.0270.04020.39
5.6.170.0270.07020.51
5.6.160.0070.05020.48
5.6.150.0130.05318.18
5.6.140.0100.03718.30
5.6.130.0070.08718.17
5.6.120.0030.04321.00
5.6.110.0030.04720.98
5.6.100.0130.07720.98
5.6.90.0070.06020.89
5.6.80.0170.07020.38
5.5.350.0000.08320.43
5.5.340.0030.08718.08
5.5.330.0070.03720.23
5.5.320.0130.06720.27
5.5.310.0370.05020.27
5.5.300.0030.04317.92
5.5.290.0070.03717.95
5.5.280.0170.07020.87
5.5.270.0030.09020.64
5.5.260.0100.07720.79
5.5.250.0000.07020.62
5.5.240.4230.04320.11
5.4.450.1230.04019.20
5.4.440.1070.05319.49
5.4.430.1100.04019.36
5.4.420.1400.03719.31
5.4.410.1170.03319.29
5.4.400.0600.03018.98
5.4.390.0470.03719.13
5.4.380.0370.04318.63
5.4.370.0230.05018.74
5.4.360.0230.05018.46
5.4.350.0330.05718.62
5.4.340.0200.06018.48
5.4.320.0090.03912.50
5.4.310.0030.04112.50
5.4.300.0050.03812.50
5.4.290.0050.04912.50
5.4.280.0090.03912.39
5.4.270.0130.03412.40
5.4.260.0080.03812.40
5.4.250.0080.03712.40
5.4.240.0120.04612.39
5.4.230.0050.05412.39
5.4.220.0050.03912.39
5.4.210.0080.03612.39
5.4.200.0070.03712.39
5.4.190.0080.03512.39
5.4.180.0050.04312.39
5.4.170.0070.03612.39
5.4.160.0050.03912.39
5.4.150.0060.04112.38
5.4.140.0120.04712.07
5.4.130.0110.05112.06
5.4.120.0100.04412.02
5.4.110.0070.03612.01
5.4.100.0080.03512.01
5.4.90.0070.03912.02
5.4.80.0060.04312.02
5.4.70.0100.04012.01
5.4.60.0080.03612.01
5.4.50.0080.03612.01
5.4.40.0050.03912.00
5.4.30.0040.03811.99
5.4.20.0040.03811.99
5.4.10.0090.03512.00
5.4.00.0070.03511.48
5.3.290.0110.04512.80
5.3.280.0090.03912.71
5.3.270.0110.03712.73
5.3.260.0080.04212.72
5.3.250.0110.03612.72
5.3.240.0070.03812.71
5.3.230.0030.04112.71
5.3.220.0080.03612.68
5.3.210.0100.03612.68
5.3.200.0090.03912.68
5.3.190.0050.03812.68
5.3.180.0090.03612.68
5.3.170.0090.03612.67
5.3.160.0120.03312.67
5.3.150.0060.03812.67
5.3.140.0070.03612.66
5.3.130.0070.03812.66
5.3.120.0070.04312.66
5.3.110.0100.03712.66
5.3.100.0060.04412.11
5.3.90.0080.04112.09
5.3.80.0050.03812.09
5.3.70.0060.03712.09
5.3.60.0070.03612.07
5.3.50.0080.03612.03
5.3.40.0080.03512.02
5.3.30.0060.03711.98
5.3.20.0040.03811.77
5.3.10.0080.03411.73
5.3.00.0060.03611.71
5.2.170.0040.0329.21
5.2.160.0070.0349.22
5.2.150.0040.0339.21
5.2.140.0050.0309.21
5.2.130.0050.0319.17
5.2.120.0030.0309.17
5.2.110.0050.0299.18
5.2.100.0070.0279.18
5.2.90.0060.0289.18
5.2.80.0030.0369.17
5.2.70.0040.0329.17
5.2.60.0070.0359.12
5.2.50.0060.0419.10
5.2.40.0120.0329.07
5.2.30.0110.0349.05
5.2.20.0050.0299.03
5.2.10.0040.0298.94
5.2.00.0090.0258.81
5.1.60.0070.0228.09
5.1.50.0020.0318.09
5.1.40.0050.0298.07
5.1.30.0040.0298.42
5.1.20.0080.0298.44
5.1.10.0090.0228.16
5.1.00.0070.0268.16
5.0.50.0030.0216.63
5.0.40.0030.0216.50
5.0.30.0090.0336.31
5.0.20.0020.0226.28
5.0.10.0040.0246.25
5.0.00.0040.0336.25
4.4.90.0020.0174.78
4.4.80.0050.0184.75
4.4.70.0040.0204.76
4.4.60.0050.0184.75
4.4.50.0030.0164.77
4.4.40.0030.0284.71
4.4.30.0020.0204.76
4.4.20.0040.0154.84
4.4.10.0020.0164.85
4.4.00.0050.0254.76
4.3.110.0040.0154.66
4.3.100.0020.0164.66
4.3.90.0050.0134.64
4.3.80.0040.0234.58
4.3.70.0030.0154.63
4.3.60.0020.0164.62
4.3.50.0060.0134.63
4.3.40.0050.0254.54
4.3.30.0000.0183.30
4.3.20.0000.0183.27
4.3.10.0010.0193.24
4.3.00.0000.01714.93

preferences:
46.13 ms | 401 KiB | 5 Q