3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ '{"asset":[1,2],"person":[1],"passive":[1]} ', '{"asset":[3],"charge":[1],"passive":[2]} ', ]; $array = array_map(function($v) { return json_decode($v, true);}, $array); $merged = array_merge_recursive(...$array); print json_encode($merged);

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.4.130.0120.00817.68
8.4.120.0130.00724.18
8.4.110.0150.00618.92
8.4.100.0080.01017.71
8.4.90.0100.01020.48
8.4.80.0130.00718.94
8.4.70.0100.00920.64
8.4.60.0140.00718.85
8.4.50.0100.01020.45
8.4.40.0110.00819.45
8.4.30.0030.00622.58
8.4.20.0130.00620.59
8.4.10.0160.00022.21
8.3.260.0100.01016.49
8.3.250.0070.01118.86
8.3.240.0130.00716.72
8.3.230.0130.00616.77
8.3.220.0090.00918.95
8.3.210.0110.00716.68
8.3.200.0040.00516.74
8.3.190.0050.00517.03
8.3.180.0060.00318.90
8.3.170.0060.01319.08
8.3.160.0040.00420.27
8.3.150.0070.01116.49
8.3.140.0030.00717.08
8.3.130.0060.00318.41
8.3.120.0110.00719.05
8.3.110.0110.00420.94
8.3.100.0050.00324.06
8.3.90.0060.00326.77
8.3.80.0080.00018.30
8.3.70.0140.00416.63
8.3.60.0150.00318.38
8.3.50.0080.00517.39
8.3.40.0110.00418.70
8.3.30.0000.01418.51
8.3.20.0050.00321.73
8.3.10.0060.00321.72
8.3.00.0060.00322.46
8.2.290.0090.01016.58
8.2.280.0140.00518.08
8.2.270.0050.00317.14
8.2.260.0100.00016.59
8.2.250.0080.00018.18
8.2.240.0000.00816.99
8.2.230.0090.00022.58
8.2.220.0090.00037.54
8.2.210.0060.00326.77
8.2.200.0090.00018.29
8.2.190.0110.00416.75
8.2.180.0070.01118.41
8.2.170.0070.01418.96
8.2.160.0080.00622.96
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0000.00826.16
8.2.120.0070.00021.04
8.2.110.0040.00419.21
8.2.100.0070.00417.72
8.2.90.0030.00619.05
8.2.80.0050.00317.97
8.2.70.0050.00317.50
8.2.60.0030.00617.77
8.2.50.0000.00918.07
8.2.40.0040.00418.22
8.2.30.0040.00418.07
8.2.20.0100.00018.30
8.2.10.0040.00419.23
8.2.00.0080.00019.31
8.1.330.0130.00416.06
8.1.320.0110.00815.98
8.1.310.0170.00018.23
8.1.300.0040.00419.53
8.1.290.0050.00518.88
8.1.280.0070.00725.92
8.1.270.0030.00623.95
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0070.00322.67
8.1.230.0110.00018.86
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0100.00017.35
8.1.190.0060.00317.35
8.1.180.0000.00818.10
8.1.170.0040.00418.84
8.1.160.0000.00718.88
8.1.150.0040.00418.98
8.1.140.0040.00418.93
8.1.130.0040.00420.14
8.1.120.0000.00717.47
8.1.110.0000.00717.36
8.1.100.0040.00417.44
8.1.90.0050.00317.44
8.1.80.0080.00017.35
8.1.70.0000.00717.34
8.1.60.0060.00317.57
8.1.50.0040.00417.59
8.1.40.0000.00817.51
8.1.30.0000.00817.52
8.1.20.0030.00617.52
8.1.10.0000.00717.41
8.1.00.0000.00717.43
8.0.300.0000.00718.77
8.0.290.0020.00516.75
8.0.280.0070.00018.35
8.0.270.0060.00317.23
8.0.260.0030.00320.04
8.0.250.0030.00316.88
8.0.240.0000.00716.99
8.0.230.0030.00316.79
8.0.220.0040.00416.82
8.0.210.0040.00416.80
8.0.200.0000.00616.97
8.0.190.0030.00316.98
8.0.180.0040.00416.91
8.0.170.0080.00016.77
8.0.160.0040.00416.75
8.0.150.0030.00516.92
8.0.140.0050.00216.81
8.0.130.0030.00313.30
8.0.120.0000.00716.95
8.0.110.0070.00016.89
8.0.100.0040.00416.77
8.0.90.0030.00616.82
8.0.80.0100.00516.85
8.0.70.0040.00416.79
8.0.60.0030.00516.71
8.0.50.0000.00816.71
8.0.30.0170.00017.04
8.0.20.0100.00716.83
8.0.10.0000.00716.96
8.0.00.0100.00716.68
7.4.330.0030.00315.55
7.4.320.0000.00616.51
7.4.300.0040.00416.49
7.4.290.0000.00716.45
7.4.280.0000.00816.58
7.4.270.0080.00016.41
7.4.260.0030.00313.14
7.4.250.0000.00716.60
7.4.240.0040.00416.55
7.4.230.0030.00316.57
7.4.220.0050.00216.53
7.4.210.0070.00916.46
7.4.200.0050.00316.38
7.4.130.0170.00016.58
7.4.120.0110.01116.38
7.4.110.0040.01916.46
7.4.100.0110.00616.28
7.4.90.0090.01416.58
7.4.80.0100.00719.39
7.4.70.0130.00316.49
7.4.60.0030.01816.55
7.4.50.0000.01116.51
7.4.40.0110.00416.37
7.4.00.0040.01115.04
7.3.330.0000.00616.11
7.3.320.0060.00013.24
7.3.310.0070.00016.04
7.3.300.0030.00316.20
7.3.290.0080.00616.23
7.3.280.0070.00716.18
7.3.260.0130.00716.34
7.3.230.0090.00916.29
7.3.210.0090.00616.22
7.3.200.0120.00916.49
7.3.190.0110.00716.54
7.3.180.0070.01416.15
7.3.170.0080.00816.57
7.3.160.0080.01116.44
7.3.110.0000.01414.83
7.3.100.0080.00714.62
7.3.90.0060.01114.82
7.3.80.0090.00614.84
7.3.70.0090.00514.56
7.3.60.0090.00814.75
7.3.50.0100.00414.69
7.3.40.0020.01214.63
7.3.30.0090.00514.73
7.3.20.0090.00914.81
7.3.10.0100.00614.77
7.3.00.0110.00414.65
7.2.330.0120.00616.58
7.2.320.0200.00016.71
7.2.310.0110.00616.36
7.2.300.0100.00716.79
7.2.290.0060.00916.52
7.2.240.0040.01014.96
7.2.230.0080.01114.89
7.2.220.0140.00615.11
7.2.210.0090.00514.88
7.2.200.0190.01215.06
7.2.190.0080.01214.94
7.2.180.0050.01114.89
7.2.170.0100.00514.91
7.2.160.0080.00915.05
7.2.150.0080.01115.03
7.2.140.0090.00815.12
7.2.130.0100.00714.98
7.2.120.0100.00814.96
7.2.110.0060.01115.09
7.2.100.0080.01015.12
7.2.90.0110.00615.13
7.2.80.0080.01014.91
7.2.70.0090.01215.03
7.2.60.0050.01614.93
7.2.50.0070.01114.93
7.2.40.0110.00514.94
7.2.30.0090.00615.00
7.2.20.0050.01214.92
7.2.10.0040.01615.19
7.2.00.0160.00615.09
7.1.330.0080.00613.83
7.1.320.0050.01113.92
7.1.310.0090.00913.90
7.1.300.0060.01113.79
7.1.290.0080.00613.98
7.1.280.0060.00813.84
7.1.270.0080.01113.73
7.1.260.0070.00913.87
7.1.250.0050.00813.90

preferences:
26.69 ms | 403 KiB | 5 Q