3v4l.org

run code in 300+ PHP versions simultaneously
<?php $response ='[ { "userSummaries": [ { "id": "9910", "status": "Active", "name": "Jhon" } ] }, { "userSummaries": [ { "id": "8754", "status": "Active", "name": "Jane" } ] } ]'; $myArr = json_decode($response, true); $result_arr = []; array_walk($myArr,function($v,$k) use (&$result_arr){ $result_arr[key($v)] = $v[key($v)]; }); echo json_encode($result_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.4.10.0080.00019.43
8.3.140.0000.00820.63
8.3.130.0040.00418.47
8.3.120.0040.01519.05
8.3.110.0030.00620.94
8.3.100.0090.00024.06
8.3.90.0040.00426.77
8.3.80.0100.00016.50
8.3.70.0090.00616.58
8.3.60.0000.01918.40
8.3.50.0060.01124.49
8.3.40.0160.00018.89
8.3.30.0070.00718.61
8.3.20.0000.00924.18
8.3.10.0060.00324.66
8.3.00.0040.00426.16
8.2.260.0080.00017.24
8.2.250.0080.00016.57
8.2.240.0100.00618.84
8.2.230.0000.00922.58
8.2.220.0060.00337.54
8.2.210.0030.00526.77
8.2.200.0030.00716.63
8.2.190.0090.00616.88
8.2.180.0070.01025.92
8.2.170.0150.00018.91
8.2.160.0070.00722.96
8.2.150.0080.00025.66
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0000.00726.16
8.2.110.0100.00021.03
8.2.100.0030.01017.97
8.2.90.0080.00017.97
8.2.80.0040.00418.16
8.2.70.0050.00317.63
8.2.60.0000.00917.63
8.2.50.0000.00818.05
8.2.40.0000.00818.09
8.2.30.0000.00818.02
8.2.20.0040.00418.14
8.2.10.0040.00419.32
8.2.00.0030.00619.24
8.1.310.0080.00017.03
8.1.300.0000.01118.14
8.1.290.0090.00030.84
8.1.280.0120.00925.92
8.1.270.0040.00423.99
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00323.81
8.1.230.0060.00620.89
8.1.220.0000.00817.79
8.1.210.0000.00818.77
8.1.200.0070.00417.38
8.1.190.0040.00417.13
8.1.180.0040.00418.10
8.1.170.0050.00218.59
8.1.160.0030.00518.82
8.1.150.0020.00518.95
8.1.140.0000.00718.90
8.1.130.0070.00020.21
8.1.120.0000.00717.46
8.1.110.0070.00017.46
8.1.100.0060.00317.39
8.1.90.0040.00417.51
8.1.80.0070.00017.37
8.1.70.0000.00717.50
8.1.60.0030.00617.56
8.1.50.0030.00517.57
8.1.40.0000.00817.41
8.1.30.0000.00817.67
8.1.20.0000.00817.50
8.1.10.0040.00417.50
8.1.00.0070.00017.54
8.0.300.0030.00420.03
8.0.290.0000.00816.75
8.0.280.0000.00818.38
8.0.270.0090.00318.06
8.0.260.0000.00718.37
8.0.250.0040.00416.84
8.0.240.0030.00316.86
8.0.230.0040.00416.87
8.0.220.0040.00416.80
8.0.210.0030.00316.94
8.0.200.0070.00016.91
8.0.190.0050.00316.99
8.0.180.0040.00416.86
8.0.170.0000.00816.89
8.0.160.0070.00016.82
8.0.150.0000.01016.80
8.0.140.0000.00716.77
8.0.130.0000.00613.34
8.0.120.0040.00416.88
8.0.110.0040.00416.89
8.0.100.0040.00416.93
8.0.90.0000.00716.97
8.0.80.0130.00516.85
8.0.70.0040.00416.89
8.0.60.0070.00016.73
8.0.50.0000.00816.90
8.0.30.0040.01917.12
8.0.20.0100.01017.03
8.0.10.0000.00716.92
8.0.00.0110.01216.61
7.4.330.0000.00515.55
7.4.320.0000.00716.61
7.4.300.0060.00016.59
7.4.290.0050.00216.63
7.4.280.0000.00816.48
7.4.270.0030.00316.53
7.4.260.0060.00013.34
7.4.250.0030.00316.62
7.4.240.0070.00016.62
7.4.230.0040.00416.31
7.4.220.0000.00716.44
7.4.210.0100.00416.58
7.4.200.0000.00816.66
7.4.130.0120.00616.49
7.4.120.0030.01416.68
7.4.110.0150.00416.51
7.4.100.0130.00316.42
7.4.90.0100.00716.61
7.4.80.0100.00719.39
7.4.70.0080.01016.33
7.4.60.0110.00716.53
7.4.50.0090.01116.43
7.4.40.0090.00916.54
7.4.30.0120.00716.51
7.4.20.0100.00816.46
7.4.10.0090.00916.56
7.4.00.0090.00816.44
7.3.330.0060.00016.23
7.3.320.0050.00013.41
7.3.310.0030.00516.42
7.3.300.0000.00716.39
7.3.290.0130.00316.37
7.3.260.0080.00916.37
7.3.240.0080.01016.39
7.3.230.0110.00616.27
7.3.210.0070.01016.38
7.3.200.0100.00716.29
7.3.190.0080.00916.50
7.3.180.0060.01116.46
7.3.170.0080.01116.38
7.3.160.0080.01216.44
7.3.150.0100.00816.42
7.3.140.0100.00816.55
7.3.130.0060.01016.44
7.3.120.0120.00616.33
7.3.110.0080.01116.38
7.3.100.0130.00616.37
7.3.90.0090.00816.27
7.3.80.0080.00916.14
7.3.70.0080.01116.22
7.3.60.0100.01016.36
7.3.50.0080.01116.41
7.3.40.0070.01116.18
7.3.30.0070.01016.35
7.3.20.0200.00816.47
7.3.10.0130.00516.37
7.3.00.0150.00816.38
7.2.330.0080.00816.77
7.2.320.0100.00716.80
7.2.310.0090.01016.73
7.2.300.0100.00916.67
7.2.290.0120.01216.67
7.2.280.0070.01116.51
7.2.270.0100.00816.65
7.2.260.0090.00916.53
7.2.250.0100.00916.59
7.2.240.0110.00816.56
7.2.230.0100.00916.55
7.2.220.0090.00816.59
7.2.210.0080.01116.50
7.2.200.0080.01216.30
7.2.190.0090.01016.27
7.2.180.0080.00916.44
7.2.170.0100.01016.44
7.2.160.0090.00916.49
7.2.150.0110.01116.64
7.2.140.0120.00816.67
7.2.130.0150.00816.62
7.2.120.0110.00916.67
7.2.110.0130.00816.69
7.2.100.0120.00916.69
7.2.90.0160.00616.66
7.2.80.0110.01216.64
7.2.70.0150.01116.63
7.2.60.0140.01016.70
7.2.50.0150.00716.64
7.2.40.0170.00816.65
7.2.30.0130.00716.78
7.2.20.0100.01116.75
7.2.10.0170.00816.62
7.2.00.0070.01216.45

preferences:
64.44 ms | 403 KiB | 5 Q