3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '[{ "name": "abc", "category": "new_cat", "selectedLanguage": { "de": "Deutsch", "de_status": "APPROVED" } }, { "name": "def", "category": "new_def", "selectedLanguage": { "es": "Espanol", "es_status": "APPROVED" } }, { "name": "abc", "category": "new_cat", "selectedLanguage": { "en": "English", "en_status": "APPROVED" } }]'; $result = []; foreach (json_decode($json, true) as $row) { $result[$row['name']] = !isset($result[$row['name']]) ? $row : array_replace_recursive($result[$row['name']], $row); } var_export(array_values($result));

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.10.0120.00616.58
8.5.00.0120.00920.16
8.4.160.0160.00719.60
8.4.150.0020.00114.05
8.4.140.0110.01117.77
8.4.130.0040.00519.40
8.4.120.0120.00817.59
8.4.110.0120.00820.61
8.4.100.0120.00917.51
8.4.90.0080.01220.56
8.4.80.0120.00818.84
8.4.70.0140.00717.63
8.4.60.0050.00518.90
8.4.50.0130.00817.54
8.4.40.0100.00717.60
8.4.30.0100.01020.30
8.4.20.0140.00717.90
8.4.10.0160.00321.16
8.3.280.0170.01118.29
8.3.270.0110.01016.61
8.3.260.0150.00516.46
8.3.250.0040.00416.57
8.3.240.0080.01116.66
8.3.230.0100.00816.49
8.3.220.0030.00418.97
8.3.210.0060.00216.75
8.3.200.0050.00316.72
8.3.190.0060.00617.41
8.3.180.0100.00916.50
8.3.170.0120.00617.36
8.3.160.0100.01020.27
8.3.150.0110.00416.44
8.3.140.0000.00817.35
8.3.130.0030.01316.72
8.3.120.0050.00520.86
8.3.110.0150.00420.94
8.3.100.0090.00016.48
8.3.90.0190.00026.77
8.3.80.0040.00419.36
8.3.70.0140.00416.58
8.3.60.0070.01116.50
8.3.50.0120.00724.46
8.3.40.0040.01218.71
8.3.30.0120.00318.96
8.3.20.0050.00324.18
8.3.10.0050.00324.66
8.3.00.0040.00426.16
8.2.290.0090.00416.62
8.2.280.0040.00518.77
8.2.270.0030.01517.02
8.2.260.0080.00016.56
8.2.250.0110.00716.58
8.2.240.0080.01218.96
8.2.230.0060.00322.58
8.2.220.0090.00024.06
8.2.210.0070.00726.77
8.2.200.0040.00418.88
8.2.190.0120.00318.24
8.2.180.0110.00425.92
8.2.170.0070.00719.08
8.2.160.0070.01022.96
8.2.150.0030.00525.66
8.2.140.0040.00424.66
8.2.130.0100.00326.16
8.2.120.0090.00020.69
8.2.110.0070.00319.33
8.2.100.0080.00417.97
8.2.90.0000.00817.74
8.2.80.0040.00418.91
8.2.70.0040.00818.16
8.2.60.0000.00818.16
8.2.50.0050.00318.10
8.2.40.0040.00419.33
8.2.30.0020.00519.33
8.2.20.0000.00718.09
8.2.10.0070.00019.32
8.2.00.0050.00219.20
8.1.330.0090.01016.19
8.1.320.0090.00615.98
8.1.310.0080.00018.42
8.1.300.0030.00616.35
8.1.290.0060.00330.84
8.1.280.0090.00925.92
8.1.270.0080.00023.99
8.1.260.0080.00026.35
8.1.250.0070.00728.09
8.1.240.0070.00322.16
8.1.230.0110.00019.08
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00317.48
8.1.190.0030.00617.36
8.1.180.0040.00418.10
8.1.170.0000.00818.71
8.1.160.0080.00019.07
8.1.150.0000.00818.89
8.1.140.0040.00418.91
8.1.130.0100.00020.21
8.1.120.0030.00317.37
8.1.110.0080.00017.48
8.1.100.0070.00017.37
8.1.90.0000.00717.48
8.1.80.0060.00317.45
8.1.70.0020.00517.45
8.1.60.0050.00217.64
8.1.50.0030.00617.56
8.1.40.0040.00417.43
8.1.30.0000.00817.53
8.1.20.0080.00017.55
8.1.10.0020.00517.41
8.1.00.0040.00417.34
8.0.300.0050.00318.78
8.0.290.0060.00316.75
8.0.280.0080.00018.42
8.0.270.0070.00016.89
8.0.260.0030.00318.43
8.0.250.0030.00316.95
8.0.240.0070.00016.93
8.0.230.0000.00616.96
8.0.220.0050.00316.87
8.0.210.0030.00316.77
8.0.200.0000.00716.86
8.0.190.0000.00716.95
8.0.180.0040.00416.90
8.0.170.0000.00916.98
8.0.160.0000.00716.80
8.0.150.0080.00016.86
8.0.140.0040.00416.78
8.0.130.0030.00313.34
8.0.120.0050.00216.88
8.0.110.0000.00716.95
8.0.100.0040.00416.72
8.0.90.0030.00616.91
8.0.80.0100.00616.89
8.0.70.0040.00416.77
8.0.60.0000.00716.75
8.0.50.0040.00416.77
8.0.30.0070.01017.29
8.0.20.0160.00417.20
8.0.10.0040.00416.87
8.0.00.0160.00616.71
7.4.330.0000.00415.55
7.4.320.0000.00616.62
7.4.300.0000.00716.41
7.4.290.0040.00416.63
7.4.280.0030.00616.52
7.4.270.0030.00316.38
7.4.260.0000.00613.23
7.4.250.0070.00016.50
7.4.240.0040.00416.51
7.4.230.0050.00316.71
7.4.220.0030.00516.57
7.4.210.0070.00916.60
7.4.200.0030.00316.51
7.4.130.0150.00916.55
7.4.120.0130.01016.42
7.4.110.0170.00016.49
7.4.100.0160.00316.55
7.4.90.0130.00616.60
7.4.80.0120.00619.39
7.4.70.0090.01216.45
7.4.60.0110.00716.54
7.4.50.0090.01216.22
7.4.40.0060.01316.27
7.4.30.0120.00616.07
7.4.20.0130.00316.40
7.4.10.0070.01016.23
7.4.00.0090.01016.37
7.3.330.0000.00716.30
7.3.320.0050.00013.14
7.3.310.0040.00416.40
7.3.300.0060.00016.35
7.3.290.0110.00316.35
7.3.260.0150.00316.63
7.3.240.0100.00816.36
7.3.230.0060.01616.27
7.3.210.0130.00316.46
7.3.200.0140.00716.54
7.3.190.0110.00516.67
7.3.180.0110.00716.58
7.3.170.0100.00716.41
7.3.160.0130.00316.08
7.3.150.0180.00016.41
7.3.140.0060.01016.39
7.3.130.0070.01016.26
7.3.120.0070.01016.20
7.3.110.0120.00316.34
7.3.100.0140.00616.53
7.3.90.0110.00816.26
7.3.80.0090.00916.29
7.3.70.0100.01016.24
7.3.60.0140.00716.26
7.3.50.0090.00816.39
7.3.40.0070.01116.30
7.3.30.0070.01016.29
7.3.20.0090.00916.42
7.3.10.0090.00916.39
7.3.00.0150.00616.25
7.2.330.0100.00716.70
7.2.320.0030.01316.41
7.2.310.0090.01216.40
7.2.300.0110.00716.55
7.2.290.0120.00616.44
7.2.280.0070.01016.32
7.2.270.0090.01316.22
7.2.260.0120.00616.55
7.2.250.0100.00716.23
7.2.240.0110.01116.48
7.2.230.0100.01016.46
7.2.220.0150.00316.50
7.2.210.0130.01016.29
7.2.200.0060.01616.30
7.2.190.0030.01416.22
7.2.180.0070.01016.48
7.2.170.0090.00916.61
7.2.160.0140.00316.46
7.2.150.0060.01216.79
7.2.140.0180.00716.61
7.2.130.0070.01116.62
7.2.120.0100.00716.60
7.2.110.0230.01016.62
7.2.100.0090.00916.63
7.2.90.0070.01016.50
7.2.80.0070.01016.71
7.2.70.0110.00716.48
7.2.60.0090.01316.68
7.2.50.0090.00916.63
7.2.40.0070.01116.60
7.2.30.0090.00916.82
7.2.20.0150.00516.57
7.2.10.0090.00916.50
7.2.00.0070.01016.36

preferences:
37.67 ms | 403 KiB | 5 Q