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"; echo $val; } 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.0090.00918.39
8.3.50.0080.01021.92
8.3.40.0030.01518.72
8.3.30.0090.00619.08
8.3.20.0040.00420.16
8.3.10.0030.00521.90
8.3.00.0080.00018.05
8.2.180.0060.01216.50
8.2.170.0070.01122.96
8.2.160.0110.00420.52
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00821.00
8.2.110.0110.00021.00
8.2.100.0070.00417.78
8.2.90.0000.00819.17
8.2.80.0030.00517.97
8.2.70.0000.00817.50
8.2.60.0050.00317.93
8.2.50.0060.00318.10
8.2.40.0030.00520.01
8.2.30.0080.00018.18
8.2.20.0030.00517.65
8.2.10.0000.00918.05
8.2.00.0050.00217.70
8.1.280.0090.00925.92
8.1.270.0080.00023.91
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.66
8.1.230.0080.00417.77
8.1.220.0080.00017.79
8.1.210.0000.00818.77
8.1.200.0060.00317.36
8.1.190.0040.00417.23
8.1.180.0030.00518.10
8.1.170.0060.00318.59
8.1.160.0000.00722.05
8.1.150.0040.00418.73
8.1.140.0000.00717.38
8.1.130.0030.00317.82
8.1.120.0040.00317.32
8.1.110.0070.00017.37
8.1.100.0070.00017.23
8.1.90.0000.00717.28
8.1.80.0040.00417.43
8.1.70.0000.00717.25
8.1.60.0060.00317.49
8.1.50.0000.00817.36
8.1.40.0030.00517.36
8.1.30.0050.00317.60
8.1.20.0040.00417.50
8.1.10.0040.00417.57
8.1.00.0000.00817.36
8.0.300.0050.00318.77
8.0.290.0030.00516.63
8.0.280.0000.00718.35
8.0.270.0030.00317.18
8.0.260.0000.00617.27
8.0.250.0050.00316.95
8.0.240.0000.00716.93
8.0.230.0000.00716.95
8.0.220.0030.00316.71
8.0.210.0030.00316.70
8.0.200.0040.00416.88
8.0.190.0000.00816.78
8.0.180.0040.00416.88
8.0.170.0000.00816.72
8.0.160.0000.00716.72
8.0.150.0040.00416.72
8.0.140.0030.00316.69
8.0.130.0060.00013.18
8.0.120.0040.00416.84
8.0.110.0070.00016.76
8.0.100.0040.00416.84
8.0.90.0040.00416.62
8.0.80.0030.01316.79
8.0.70.0040.00416.66
8.0.60.0000.00716.69
8.0.50.0020.00516.83
8.0.30.0150.00717.01
8.0.20.0090.01017.40
8.0.10.0040.00417.05
8.0.00.0080.01016.83
7.4.330.0020.00215.00
7.4.320.0030.00316.54
7.4.300.0060.00016.53
7.4.290.0000.00816.46
7.4.280.0060.00316.53
7.4.270.0040.00416.46
7.4.260.0070.00316.52
7.4.250.0070.00016.40
7.4.240.0020.00516.45
7.4.230.0070.00016.30
7.4.220.0090.00916.57
7.4.210.0030.01616.51
7.4.200.0000.00716.52
7.4.160.0130.00316.55
7.4.150.0180.00917.40
7.4.140.0100.00717.86
7.4.130.0090.00916.33
7.4.120.0090.00816.47
7.4.110.0090.00916.42
7.4.100.0060.01216.43
7.4.90.0140.00416.46
7.4.80.0120.01219.39
7.4.70.0140.00316.51
7.4.60.0080.01116.38
7.4.50.0040.00416.29
7.4.40.0180.00016.58
7.4.30.0060.01216.27
7.4.00.0030.01014.61
7.3.330.0000.00513.28
7.3.320.0000.00513.22
7.3.310.0040.00416.27
7.3.300.0030.00316.10
7.3.290.0130.00616.25
7.3.280.0070.00916.28
7.3.270.0110.00817.40
7.3.260.0180.00916.30
7.3.250.0080.01116.29
7.3.240.0130.01016.20
7.3.230.0070.01316.39
7.3.210.0040.01316.21
7.3.200.0160.00719.39
7.3.190.0110.00616.30
7.3.180.0110.01116.31
7.3.170.0030.01416.27
7.3.160.0070.01016.32
7.3.120.0030.01014.91
7.2.330.0100.00916.45
7.2.320.0110.00616.67
7.2.310.0070.01116.65
7.2.300.0140.00316.23
7.2.290.0030.01316.58
7.2.60.0060.00616.62
7.2.00.0060.00919.32
7.1.200.0070.00715.88
7.1.100.0070.01017.77
7.1.70.0000.00817.16
7.1.60.0030.02019.70
7.1.50.0040.01816.95
7.1.00.0030.07722.44
7.0.200.0070.00716.46
7.0.140.0000.07722.15
7.0.110.0030.03719.98
7.0.100.0030.06020.08
7.0.90.0000.04319.95
7.0.80.0030.03319.95
7.0.70.0100.06319.96
7.0.60.0100.05320.03
7.0.50.0000.04319.95
7.0.40.0070.04019.75
7.0.30.0030.03319.66
7.0.20.0030.03319.84
7.0.10.0000.04319.87
7.0.00.0130.04019.75
5.6.280.0070.07320.89
5.6.260.0000.04020.60
5.6.250.0030.05720.62
5.6.240.0130.03320.70
5.6.230.0170.07020.63
5.6.220.0030.03320.46
5.6.210.0200.05320.66
5.6.200.0030.04320.85
5.6.190.0070.03720.63
5.6.180.0070.03720.54
5.6.170.0130.03720.55
5.6.160.0000.04320.58
5.6.150.0070.04720.65
5.6.140.0030.07020.61
5.6.130.0000.07320.68
5.6.120.0100.03320.56
5.6.110.0000.05020.61
5.6.100.0000.04320.64
5.6.90.0070.05720.60
5.6.80.0100.03020.02
5.6.70.0030.04019.94
5.6.60.0000.04320.01
5.6.50.0100.03020.03
5.6.40.0100.06320.20
5.6.30.0070.04019.96
5.6.20.0070.05319.97
5.6.10.0100.03320.20
5.6.00.0070.03320.04
5.5.380.0070.03717.64
5.5.370.0100.03017.56
5.5.360.0030.06017.55
5.5.350.0100.08017.53
5.5.340.0070.05317.91
5.5.330.0000.04718.09
5.5.320.0070.05318.08
5.5.310.0030.06318.22
5.5.300.0000.04318.05
5.5.290.0030.05018.07
5.5.280.0100.03018.07
5.5.270.0030.05018.22
5.5.260.0030.07718.12
5.5.250.0000.04017.75
5.5.240.0070.04317.22
5.5.230.0070.06017.43
5.5.220.0100.03017.21
5.5.210.0070.03317.52
5.5.200.0100.03017.19
5.5.190.0100.03017.31
5.5.180.0070.06317.42
5.5.160.0000.05017.46
5.5.150.0030.03717.39
5.5.140.0030.04317.60
5.5.130.0070.07317.28
5.5.120.0000.09017.40
5.5.110.0070.06717.45
5.5.100.0030.03717.36
5.5.90.0070.03317.34
5.5.80.0070.02717.35
5.5.70.0000.04317.20
5.5.60.0100.02717.34
5.5.50.0030.07017.29
5.5.40.0130.05717.49
5.5.30.0030.03717.32
5.5.20.0030.03717.48
5.5.10.0130.05017.46
5.5.00.0030.03317.33
5.4.450.0000.04719.45
5.4.440.0030.04319.27
5.4.430.0070.03719.28
5.4.420.0030.04319.41
5.4.410.0030.03319.14
5.4.400.0070.04019.11
5.4.390.0070.03319.00
5.4.380.0030.03719.14
5.4.370.0100.02719.14
5.4.360.0070.04318.98
5.4.350.0000.03319.01
5.4.340.0070.03319.17
5.4.320.0000.04019.09
5.4.310.0000.04019.25
5.4.300.0000.04319.10
5.4.290.0030.05319.17
5.4.280.0000.04319.16
5.4.270.0030.03719.16
5.4.260.0070.04019.00
5.4.250.0030.04719.13
5.4.240.0070.03719.08
5.4.230.0030.03319.29
5.4.220.0030.03719.08
5.4.210.0070.04019.16
5.4.200.0100.03318.94
5.4.190.0030.04019.14
5.4.180.0070.07718.99
5.4.170.0030.04019.14
5.4.160.0030.04019.14
5.4.150.0000.07018.98
5.4.140.0030.05316.61
5.4.130.0000.04016.57
5.4.120.0100.06716.50
5.4.110.0070.05316.45
5.4.100.0000.07016.55
5.4.90.0070.03316.65
5.4.80.0100.07016.40
5.4.70.0100.07716.40
5.4.60.0100.07016.48
5.4.50.0130.07016.54
5.4.40.0100.07016.58
5.4.30.0070.07716.54
5.4.20.0070.07716.54
5.4.10.0030.05016.39
5.4.00.0000.04015.79
5.3.290.0030.04714.70
5.3.280.0030.03014.68
5.3.270.0070.03714.60
5.3.260.0070.07314.61
5.3.250.0000.07314.64
5.3.240.0100.04014.61
5.3.230.0000.04014.59
5.3.220.0130.06714.79
5.3.210.0030.08314.52
5.3.200.0130.07014.59
5.3.190.0100.03314.79
5.3.180.0130.05314.59
5.3.170.0070.06314.69
5.3.160.0000.06314.57
5.3.150.0100.08714.42
5.3.140.0000.04314.64
5.3.130.0100.06714.77
5.3.120.0000.08014.50
5.3.110.0000.08314.62
5.3.100.0100.05314.04
5.3.90.0000.04014.11
5.3.80.0030.03714.03
5.3.70.0000.04014.09
5.3.60.0030.03714.08
5.3.50.0070.03313.98
5.3.40.0070.03314.00
5.3.30.0000.03714.04
5.3.20.0000.04013.65
5.3.10.0000.03713.67
5.3.00.0070.03313.64
5.2.170.0070.02712.71
5.2.160.0000.03012.71
5.2.150.0030.02712.71
5.2.140.0000.03712.71
5.2.130.0070.02312.71
5.2.120.0000.03012.71
5.2.110.0000.03012.71
5.2.100.0030.03312.71
5.2.90.0070.03012.71
5.2.80.0030.02712.71
5.2.70.0100.03312.71
5.2.60.0030.02712.71
5.2.50.0000.03312.71
5.2.40.0030.02312.71
5.2.30.0000.03012.71
5.2.20.0000.03012.71
5.2.10.0070.02712.71
5.2.00.0070.02312.71
5.1.60.0000.02712.71
5.1.50.0030.02712.71
5.1.40.0030.02312.71
5.1.30.0000.02712.71
5.1.20.0100.03312.71
5.1.10.0000.02312.71
5.1.00.0000.03012.71
5.0.50.0000.02312.71
5.0.40.0000.03312.71
5.0.30.0000.03312.71
5.0.20.0000.02712.71
5.0.10.0070.02712.71
5.0.00.0000.04712.71
4.4.90.0030.01712.71
4.4.80.0000.02012.71
4.4.70.0000.01312.71
4.4.60.0030.01012.71
4.4.50.0000.01312.71
4.4.40.0030.02012.71
4.4.30.0030.01312.71
4.4.20.0000.02312.71
4.4.10.0030.01012.71
4.4.00.0130.04312.71
4.3.110.0000.01312.71
4.3.100.0000.01312.71
4.3.90.0000.01712.71
4.3.80.0000.04012.71
4.3.70.0000.01712.71
4.3.60.0000.01312.71
4.3.50.0030.01312.71
4.3.40.0000.05012.71
4.3.30.0000.02312.71
4.3.20.0000.01712.71
4.3.10.0030.01312.71
4.3.00.0000.04312.71

preferences:
41.47 ms | 401 KiB | 5 Q