3v4l.org

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

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.0150.00018.16
8.3.50.0110.01021.20
8.3.40.0070.00718.51
8.3.30.0140.00019.04
8.3.20.0050.00320.32
8.3.10.0040.00420.28
8.3.00.0000.00819.25
8.2.180.0110.00616.50
8.2.170.0060.00922.96
8.2.160.0070.01120.39
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0040.00422.09
8.2.110.0090.00020.25
8.2.100.0000.01118.03
8.2.90.0040.00419.36
8.2.80.0040.00417.97
8.2.70.0040.00417.75
8.2.60.0080.00017.93
8.2.50.0000.01018.07
8.2.40.0050.00318.28
8.2.30.0040.00418.00
8.2.20.0000.00717.75
8.2.10.0040.00417.98
8.2.00.0040.00417.84
8.1.280.0070.01025.92
8.1.270.0040.00423.79
8.1.260.0080.00026.35
8.1.250.0030.00528.09
8.1.240.0000.00923.68
8.1.230.0060.00619.15
8.1.220.0040.00417.76
8.1.210.0090.00018.77
8.1.200.0070.00317.35
8.1.190.0000.00717.22
8.1.180.0040.00418.10
8.1.170.0030.00618.41
8.1.160.0040.00421.95
8.1.150.0040.00418.79
8.1.140.0040.00417.49
8.1.130.0050.00317.82
8.1.120.0050.00217.37
8.1.110.0000.00717.36
8.1.100.0000.00717.45
8.1.90.0030.00317.46
8.1.80.0050.00217.34
8.1.70.0070.00017.34
8.1.60.0060.00317.52
8.1.50.0040.00417.40
8.1.40.0030.00617.50
8.1.30.0040.00417.58
8.1.20.0040.00417.69
8.1.10.0040.00417.40
8.1.00.0040.00417.48
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0040.00418.45
8.0.270.0030.00317.18
8.0.260.0030.00317.21
8.0.250.0070.00016.98
8.0.240.0030.00316.99
8.0.230.0070.00016.86
8.0.220.0000.00716.89
8.0.210.0080.00016.78
8.0.200.0030.00316.95
8.0.190.0040.00416.86
8.0.180.0040.00416.91
8.0.170.0040.00416.90
8.0.160.0050.00216.81
8.0.150.0000.00716.85
8.0.140.0000.00716.72
8.0.130.0030.00313.37
8.0.120.0040.00416.88
8.0.110.0070.00016.89
8.0.100.0000.00716.69
8.0.90.0040.00416.76
8.0.80.0050.01016.93
8.0.70.0000.00716.75
8.0.60.0030.00516.91
8.0.50.0070.00016.89
8.0.30.0080.01517.07
8.0.20.0110.01317.40
8.0.10.0020.00517.07
8.0.00.0060.01116.66
7.4.330.0020.00215.00
7.4.320.0060.00016.59
7.4.300.0000.00716.38
7.4.290.0030.00316.61
7.4.280.0030.00716.44
7.4.270.0030.00316.57
7.4.260.0030.00616.49
7.4.250.0000.00816.56
7.4.240.0000.00816.43
7.4.230.0000.00716.29
7.4.220.0100.00716.60
7.4.210.0110.00416.46
7.4.200.0030.00316.61
7.4.160.0090.00916.41
7.4.150.0070.01117.40
7.4.140.0130.00517.86
7.4.130.0130.00416.65
7.4.120.0070.01016.60
7.4.110.0100.00716.49
7.4.100.0120.00616.55
7.4.90.0100.00616.62
7.4.80.0140.00319.39
7.4.70.0040.01416.52
7.4.60.0030.01316.55
7.4.50.0000.00516.55
7.4.40.0080.00816.41
7.4.30.0100.00716.59
7.4.00.0070.01014.88
7.3.330.0000.00613.11
7.3.320.0050.00013.28
7.3.310.0070.00016.32
7.3.300.0060.00016.21
7.3.290.0140.00716.25
7.3.280.0130.00516.29
7.3.270.0130.00317.40
7.3.260.0100.00816.44
7.3.250.0120.00816.42
7.3.240.0060.01016.41
7.3.230.0100.00716.44
7.3.210.0100.00716.30
7.3.200.0140.00416.30
7.3.190.0090.00916.32
7.3.180.0060.00916.19
7.3.170.0050.01116.49
7.3.160.0160.00016.32
7.3.120.0100.00714.91
7.3.110.0030.01314.67
7.3.100.0040.01114.81
7.3.90.0100.00314.80
7.3.80.0110.00414.80
7.3.70.0030.01314.92
7.3.60.0080.00414.82
7.3.50.0000.01614.63
7.3.40.0000.01014.70
7.3.30.0040.01114.67
7.3.20.0070.00716.82
7.3.10.0120.00516.49
7.3.00.0120.00415.88
7.2.330.0090.00916.75
7.2.320.0130.00316.63
7.2.310.0060.01216.59
7.2.300.0070.01416.61
7.2.290.0090.00916.30
7.2.250.0060.00915.05
7.2.240.0030.01314.93
7.2.230.0100.01014.62
7.2.220.0060.00915.14
7.2.210.0090.00915.10
7.2.200.0090.00614.96
7.2.190.0060.00614.84
7.2.180.0030.01014.83
7.2.170.0040.00815.03
7.2.130.0130.00916.03
7.2.120.0100.00516.27
7.2.110.0130.00916.46
7.2.100.0070.01416.69
7.2.90.0090.00616.34
7.2.80.0060.01216.29
7.2.70.0110.00716.25
7.2.60.0040.01016.53
7.2.50.0110.00816.21
7.2.40.0150.00316.36
7.2.30.0160.00316.16
7.2.20.0090.00516.30
7.2.10.0140.00516.14
7.2.00.0150.00516.51
7.1.330.0070.00715.90
7.1.320.0030.00615.50
7.1.310.0100.00316.04
7.1.300.0070.00715.84
7.1.290.0000.01115.85
7.1.280.0030.01015.94
7.1.270.0060.00615.58
7.1.260.0080.00415.97
7.1.250.0180.00615.70
7.1.200.0070.00315.96
7.1.100.0030.00518.04
7.1.70.0070.00017.28
7.1.60.0030.01217.17
7.1.50.0070.01617.11
7.1.00.0000.08022.32
7.0.200.0040.01416.68
7.0.140.0000.07721.96
7.0.60.0070.06019.87
7.0.50.0130.07017.87
7.0.40.0030.04320.13
7.0.30.0230.03320.26
7.0.20.0230.08020.24
7.0.10.0030.05320.08
7.0.00.0070.04020.23
5.6.280.0030.07320.89
5.6.210.0070.08020.51
5.6.200.0100.08018.12
5.6.190.0200.07020.50
5.6.180.0300.03720.77
5.6.170.0300.04320.71
5.6.160.0100.08020.46
5.6.150.0070.08318.21
5.6.140.0030.08318.18
5.6.130.0030.06018.27
5.6.120.0100.06320.75
5.6.110.0100.08321.11
5.6.100.0030.07020.95
5.6.90.0030.04321.00
5.6.80.0170.04020.39
5.5.350.0130.08720.44
5.5.340.0130.07717.94
5.5.330.0070.06320.38
5.5.320.0300.04720.33
5.5.310.0170.06020.36
5.5.300.0130.07718.03
5.5.290.0070.03717.93
5.5.280.0100.08720.79
5.5.270.0030.08720.66
5.5.260.0130.08020.80
5.5.250.0130.04320.66
5.5.240.0200.08320.36
5.4.450.0230.03719.41
5.4.440.0070.03719.38
5.4.430.0330.04019.54
5.4.420.0670.00019.56
5.4.410.0630.00019.28
5.4.400.0630.00019.25
5.4.390.0630.00019.12
5.4.380.0630.00019.07
5.4.370.0630.00019.21
5.4.360.0600.00019.02
5.4.350.0600.00019.07
5.4.340.0630.00019.16
5.4.320.0060.04612.50
5.4.310.0080.03912.50
5.4.300.0040.04012.51
5.4.290.0060.03812.50
5.4.280.0070.04012.39
5.4.270.0050.03812.40
5.4.260.0070.03712.39
5.4.250.0070.03812.39
5.4.240.0080.03512.39
5.4.230.0070.03812.39
5.4.220.0090.03512.38
5.4.210.0110.03912.39
5.4.200.0050.03912.39
5.4.190.0110.04412.39
5.4.180.0040.03812.38
5.4.170.0070.03512.39
5.4.160.0060.03612.39
5.4.150.0090.04312.39
5.4.140.0080.03812.07
5.4.130.0060.03812.06
5.4.120.0080.04012.02
5.4.110.0060.03612.01
5.4.100.0060.03612.01
5.4.90.0060.04012.01
5.4.80.0040.03912.01
5.4.70.0050.03612.01
5.4.60.0050.03612.00
5.4.50.0050.03612.01
5.4.40.0060.03511.99
5.4.30.0090.03411.98
5.4.20.0120.03012.00
5.4.10.0050.03612.00
5.4.00.0050.03711.48
5.3.290.0060.04312.80
5.3.280.0060.03812.71
5.3.270.0050.03912.72
5.3.260.0060.04412.71
5.3.250.0070.04212.72
5.3.240.0030.03912.72
5.3.230.0100.03612.71
5.3.220.0070.03712.68
5.3.210.0080.05412.68
5.3.200.0060.04312.68
5.3.190.0060.03912.68
5.3.180.0070.03812.67
5.3.170.0060.03712.66
5.3.160.0070.03612.67
5.3.150.0040.04012.67
5.3.140.0070.04312.66
5.3.130.0070.04012.66
5.3.120.0080.03712.66
5.3.110.0090.04712.66
5.3.100.0110.04612.12
5.3.90.0100.04112.09
5.3.80.0100.03512.09
5.3.70.0090.03412.09
5.3.60.0080.03712.07
5.3.50.0070.03612.02
5.3.40.0080.03512.02
5.3.30.0040.03711.98
5.3.20.0070.03511.76
5.3.10.0090.03211.73
5.3.00.0100.04011.72
5.2.170.0060.0299.18
5.2.160.0050.0289.18
5.2.150.0050.0309.18
5.2.140.0060.0299.18
5.2.130.0060.0289.15
5.2.120.0070.0259.14
5.2.110.0060.0289.15
5.2.100.0050.0409.14
5.2.90.0050.0369.14
5.2.80.0120.0419.14
5.2.70.0060.0389.14
5.2.60.0030.0319.09
5.2.50.0050.0309.06
5.2.40.0090.0279.03
5.2.30.0050.0299.01
5.2.20.0050.0289.00
5.2.10.0060.0288.93
5.2.00.0080.0288.79
5.1.60.0050.0278.07
5.1.50.0030.0288.06
5.1.40.0050.0258.05
5.1.30.0090.0258.39
5.1.20.0080.0258.42
5.1.10.0050.0268.14
5.1.00.0040.0268.14
5.0.50.0060.0246.62
5.0.40.0060.0206.48
5.0.30.0030.0346.29
5.0.20.0040.0226.27
5.0.10.0030.0236.24
5.0.00.0040.0316.23
4.4.90.0040.0164.78
4.4.80.0050.0294.75
4.4.70.0050.0174.75
4.4.60.0080.0144.75
4.4.50.0030.0194.77
4.4.40.0020.0304.70
4.4.30.0070.0174.76
4.4.20.0020.0184.84
4.4.10.0020.0204.85
4.4.00.0050.0254.76
4.3.110.0040.0144.67
4.3.100.0010.0164.66
4.3.90.0020.0224.64
4.3.80.0020.0254.58
4.3.70.0040.0134.63
4.3.60.0020.0154.63
4.3.50.0060.0134.63
4.3.40.0070.0274.53
4.3.30.0010.0183.28
4.3.20.0030.0203.26
4.3.10.0020.0163.22
4.3.00.0230.02013.59

preferences:
39.88 ms | 401 KiB | 5 Q