3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ '1' => (object) [ '2' => (object) ['1' => '1',], ], ]; array_walk_recursive($arr, function (&$item) { if (is_object($item)) $item = (array)$item; }); print_r($arr);

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.5.30.0100.00817.54
8.5.20.0120.01021.70
8.5.10.0130.00616.94
8.5.00.0100.01020.10
8.4.180.0150.00719.65
8.4.170.0110.00820.53
8.4.160.0170.00819.65
8.4.150.0050.00716.88
8.4.140.0140.00817.42
8.4.130.0060.00317.80
8.4.120.0110.00924.04
8.4.110.0120.00820.29
8.4.100.0130.00718.71
8.4.90.0100.00917.84
8.4.80.0070.00217.65
8.4.70.0030.00519.66
8.4.60.0050.00321.42
8.4.50.0100.00621.70
8.4.40.0120.00917.69
8.4.30.0100.01020.50
8.4.20.0100.01017.98
8.4.10.0060.00320.64
8.3.300.0110.00920.80
8.3.290.0110.00920.72
8.3.280.0130.00818.60
8.3.270.0110.00916.69
8.3.260.0120.00716.61
8.3.250.0110.00816.93
8.3.240.0110.00717.04
8.3.230.0120.00816.75
8.3.220.0110.00419.07
8.3.210.0110.00816.83
8.3.200.0100.00816.73
8.3.190.0100.00916.95
8.3.180.0100.00717.08
8.3.170.0160.00316.75
8.3.160.0190.00016.64
8.3.150.0070.01017.11
8.3.140.0030.00619.05
8.3.130.0000.00916.53
8.3.120.0030.01218.69
8.3.110.0080.00020.94
8.3.100.0040.00424.06
8.3.90.0070.01126.77
8.3.80.0040.00416.50
8.3.70.0040.01218.43
8.3.60.0120.00316.38
8.3.50.0030.00823.66
8.3.40.0140.00321.58
8.3.30.0110.00418.57
8.3.20.0040.00424.18
8.3.10.0140.00324.66
8.3.00.0070.00026.16
8.2.300.0110.00921.98
8.2.290.0110.00820.41
8.2.280.0040.00518.29
8.2.270.0110.00716.61
8.2.260.0040.01418.79
8.2.250.0030.00618.59
8.2.240.0050.00517.03
8.2.230.0030.00622.58
8.2.220.0090.00937.54
8.2.210.0040.00426.77
8.2.200.0040.00416.73
8.2.190.0100.00716.58
8.2.180.0150.00625.92
8.2.170.0080.00819.04
8.2.160.0140.00022.96
8.2.150.0080.00025.66
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0060.00319.77
8.2.110.0000.01020.43
8.2.100.0030.00917.88
8.2.90.0000.00817.86
8.2.80.0040.00418.86
8.2.70.0080.00017.63
8.2.60.0000.00818.05
8.2.50.0030.00518.07
8.2.40.0000.00918.22
8.2.30.0060.00318.12
8.2.20.0040.00418.03
8.2.10.0050.00319.18
8.2.00.0040.00419.20
8.1.340.0130.00719.77
8.1.330.0100.00922.22
8.1.320.0060.00216.08
8.1.310.0080.00016.74
8.1.300.0040.00816.12
8.1.290.0090.00018.88
8.1.280.0130.00725.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00618.71
8.1.230.0070.00317.83
8.1.220.0000.00817.78
8.1.210.0060.00318.77
8.1.200.0060.00317.23
8.1.190.0040.00417.22
8.1.180.0030.00518.10
8.1.170.0000.00820.17
8.1.160.0030.00318.89
8.1.150.0040.00418.88
8.1.140.0030.00618.80
8.1.130.0030.00320.11
8.1.120.0050.00317.49
8.1.110.0000.00817.46
8.1.100.0040.00417.36
8.1.90.0040.00417.36
8.1.80.0030.00517.48
8.1.70.0000.00817.37
8.1.60.0040.00417.63
8.1.50.0040.00417.44
8.1.40.0000.00817.50
8.1.30.0000.00817.54
8.1.20.0040.00417.59
8.1.10.0040.00417.61
8.1.00.0060.00317.40
8.0.300.0040.00418.77
8.0.290.0080.00016.75
8.0.280.0030.00318.36
8.0.270.0000.00717.89
8.0.260.0030.00318.29
8.0.250.0000.00716.92
8.0.240.0030.00316.97
8.0.230.0000.00716.91
8.0.220.0080.00016.85
8.0.210.0070.00016.85
8.0.200.0030.00516.93
8.0.190.0030.00517.00
8.0.180.0040.00416.98
8.0.170.0090.00016.88
8.0.160.0000.00816.89
8.0.150.0040.00416.79
8.0.140.0000.00816.93
8.0.130.0030.00313.33
8.0.120.0040.00416.93
8.0.110.0000.00716.80
8.0.100.0080.00016.89
8.0.90.0040.00416.98
8.0.80.0080.00816.91
8.0.70.0070.00016.73
8.0.60.0050.00316.89
8.0.50.0040.00416.93
8.0.30.0110.00717.04
8.0.20.0110.01117.09
8.0.10.0060.00317.13
8.0.00.0120.00616.73
7.4.330.0020.00215.55
7.4.320.0000.00716.47
7.4.300.0060.00016.48
7.4.290.0000.00716.54
7.4.280.0040.00416.61
7.4.270.0070.00016.50
7.4.260.0060.00013.20
7.4.250.0030.00316.57
7.4.240.0030.00316.42
7.4.230.0040.00416.43
7.4.220.0050.00216.41
7.4.210.0070.00916.48
7.4.200.0000.00716.42
7.4.130.0100.00716.45
7.4.120.0130.00616.54
7.4.110.0060.01416.34
7.4.100.0100.01316.61
7.4.90.0130.01316.41
7.4.80.0090.01516.41
7.4.70.0140.00716.44
7.4.60.0140.00716.36
7.4.50.0090.01216.64
7.4.40.0090.01216.50
7.4.30.0030.01616.53
7.4.20.0120.00616.50
7.4.10.0130.00616.35
7.4.00.0060.01216.63
7.3.330.0040.00416.19
7.3.320.0000.00513.35
7.3.310.0030.00316.20
7.3.300.0070.00016.30
7.3.290.0100.00416.32
7.3.260.0170.00316.42
7.3.230.0140.00516.36
7.3.220.0150.00916.43
7.3.210.0120.01216.42
7.3.200.0160.00716.35
7.3.190.0100.01316.39
7.3.180.0120.01116.31
7.3.170.0150.00616.30
7.3.160.0100.00716.45
7.3.150.0140.00916.40
7.3.140.0160.00816.62
7.3.130.0070.01516.45
7.3.120.0040.01516.45
7.3.110.0090.00916.23
7.3.100.0120.00916.38
7.3.90.0070.01116.31
7.3.80.0090.01216.29
7.3.70.0150.00416.42
7.3.60.0110.01016.43
7.3.50.0130.01616.34
7.3.40.0150.00916.55
7.3.30.0130.00716.39
7.3.20.0140.01116.39
7.3.10.0130.00716.48
7.3.00.0100.01016.29
7.2.340.0090.01516.51
7.2.330.0120.01616.41
7.2.320.0120.00916.59
7.2.310.0140.00716.43
7.2.300.0030.01916.37
7.2.290.0060.01516.47
7.2.280.0100.01016.57
7.2.270.0110.01116.45
7.2.260.0030.01616.58
7.2.250.0160.00316.42
7.2.240.0130.00616.64
7.2.230.0080.01116.71
7.2.220.0080.01216.67
7.2.210.0150.00316.43
7.2.200.0140.00416.60
7.2.190.0140.01116.45
7.2.180.0130.01016.39
7.2.170.0140.00816.67
7.2.160.0130.00716.54
7.2.150.0170.00316.71
7.2.140.0230.00316.51
7.2.130.0100.01016.50
7.2.120.0210.01516.77
7.2.110.0120.00916.56
7.2.100.0100.01016.64
7.2.90.0150.00616.55
7.2.80.0160.01016.67
7.2.70.0100.01016.66
7.2.60.0100.01016.74
7.2.50.0140.00916.63
7.2.40.0090.01316.35
7.2.30.0100.01016.80
7.2.20.0090.01316.53
7.2.10.0120.00916.66
7.2.00.0130.01316.67

preferences:
92.59 ms | 1519 KiB | 5 Q