3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{ "Status": "success", "data": { "riwayat": [ { "manifest_code": "", "manifest_description": "SHIPMENT RECEIVED BY JNE COUNTER OFFICER AT [MAKASAR]", "manifest_date": "2019-07-30", "manifest_time": "20:15", "city_name": "" }, { "manifest_code": "", "manifest_description": "SHIPMENT PICKED UP BY JNE COURIER [MAKASAR]", "manifest_date": "2019-07-30", "manifest_time": "21:29", "city_name": "" } ] } }'; $jsonToArray = json_decode($json, true); $oldKey = 'manifest_description'; $newKey = 'manifest_description_new'; array_walk($jsonToArray['data']['riwayat'], function(&$v, $k) use ($oldKey,$newKey){ $oldValue = $v[$oldKey]; isset($v[$oldKey]) ? ($v[$newKey] = $oldValue) : ''; }); print_r($jsonToArray);

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.0080.00918.63
8.5.00.0110.01019.80
8.4.150.0020.00014.05
8.4.140.0110.01217.47
8.4.130.0100.01119.39
8.4.120.0080.00220.58
8.4.110.0090.01322.82
8.4.100.0060.00519.10
8.4.90.0120.00818.68
8.4.80.0080.01217.82
8.4.70.0100.01118.16
8.4.60.0130.00618.68
8.4.50.0100.01118.94
8.4.40.0150.00617.75
8.4.30.0090.01218.74
8.4.20.0140.00319.02
8.4.10.0050.00317.82
8.3.280.0110.00818.70
8.3.270.0110.00816.77
8.3.260.0120.00716.64
8.3.250.0080.00518.95
8.3.240.0060.00517.38
8.3.230.0100.00916.54
8.3.220.0100.00817.27
8.3.210.0050.00316.63
8.3.200.0070.00216.42
8.3.190.0110.00717.19
8.3.180.0090.00716.50
8.3.170.0140.00417.08
8.3.160.0100.00016.63
8.3.150.0080.00016.76
8.3.140.0060.01316.71
8.3.130.0070.00318.44
8.3.120.0060.00320.50
8.3.110.0080.00020.94
8.3.100.0060.00316.79
8.3.90.0100.01026.77
8.3.80.0090.00016.50
8.3.70.0150.00616.58
8.3.60.0100.01018.27
8.3.50.0120.00821.25
8.3.40.0180.00318.63
8.3.30.0120.00318.72
8.3.20.0000.00821.60
8.3.10.0040.00420.24
8.3.00.0050.00323.52
8.2.290.0050.00320.26
8.2.280.0030.00518.54
8.2.270.0080.01117.31
8.2.260.0120.00616.52
8.2.250.0060.00316.62
8.2.240.0060.00320.58
8.2.230.0040.00422.58
8.2.220.0080.00037.54
8.2.210.0040.00426.77
8.2.200.0030.00616.50
8.2.190.0100.01016.58
8.2.180.0140.00318.41
8.2.170.0150.00622.96
8.2.160.0150.00320.27
8.2.150.0030.00724.18
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0000.00726.16
8.2.110.0030.00620.47
8.2.100.0130.00017.78
8.2.90.0050.00317.75
8.2.80.0030.00518.92
8.2.70.0050.00317.75
8.2.60.0000.00917.93
8.2.50.0050.00318.07
8.2.40.0080.00018.35
8.2.30.0000.00818.14
8.2.20.0000.00818.07
8.2.10.0040.00419.25
8.2.00.0000.00719.38
8.1.330.0040.00421.92
8.1.320.0080.01115.99
8.1.310.0030.00518.43
8.1.300.0070.00017.90
8.1.290.0090.00030.84
8.1.280.0130.00625.92
8.1.270.0050.00323.97
8.1.260.0050.00226.35
8.1.250.0070.00028.09
8.1.240.0100.00019.06
8.1.230.0060.00617.89
8.1.220.0040.00417.91
8.1.210.0050.00318.77
8.1.200.0030.00717.35
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0030.00618.46
8.1.160.0070.00018.91
8.1.150.0040.00418.97
8.1.140.0000.00820.89
8.1.130.0040.00417.58
8.1.120.0040.00417.38
8.1.110.0050.00317.38
8.1.100.0000.00717.44
8.1.90.0000.00817.36
8.1.80.0060.00317.43
8.1.70.0070.00017.50
8.1.60.0080.00417.52
8.1.50.0000.00817.54
8.1.40.0040.00417.52
8.1.30.0040.00417.71
8.1.20.0030.00617.55
8.1.10.0050.00317.58
8.1.00.0030.00717.54
8.0.300.0060.00318.77
8.0.290.0000.00716.75
8.0.280.0030.00318.44
8.0.270.0030.00317.27
8.0.260.0000.00716.69
8.0.250.0030.00316.98
8.0.240.0070.00316.98
8.0.230.0040.00416.83
8.0.220.0000.00916.91
8.0.210.0000.00716.95
8.0.200.0030.00316.92
8.0.190.0000.00916.84
8.0.180.0000.00716.91
8.0.170.0090.00316.96
8.0.160.0000.00716.91
8.0.150.0000.01116.87
8.0.140.0000.00816.74
8.0.130.0000.00613.34
8.0.120.0060.00316.85
8.0.110.0070.00016.89
8.0.100.0040.00416.89
8.0.90.0080.00016.79
8.0.80.0050.01216.82
8.0.70.0080.00016.77
8.0.60.0040.00416.93
8.0.50.0040.00416.89
8.0.30.0070.01317.40
8.0.20.0120.00917.37
8.0.10.0050.00217.03
8.0.00.0120.00616.71
7.4.330.0030.00315.55
7.4.320.0030.00316.58
7.4.300.0060.00016.46
7.4.290.0040.00416.62
7.4.280.0110.00016.43
7.4.270.0060.00316.55
7.4.260.0000.00513.27
7.4.250.0040.00416.46
7.4.240.0070.00016.66
7.4.230.0030.00316.42
7.4.220.0040.00316.48
7.4.210.0120.00416.59
7.4.200.0040.00416.70
7.4.140.0090.00917.86
7.4.130.0200.00016.53
7.4.120.0170.00716.56
7.4.110.0180.00016.62
7.4.100.0150.00316.50
7.4.90.0140.00316.48
7.4.80.0100.00619.39
7.4.70.0060.01716.57
7.4.60.0090.00916.56
7.4.50.0060.00916.25
7.4.40.0050.01116.56
7.4.00.0040.01015.01
7.3.330.0030.00316.26
7.3.320.0050.00313.37
7.3.310.0030.00316.35
7.3.300.0070.00016.32
7.3.290.0070.00016.38
7.3.280.0070.01316.36
7.3.260.0090.01016.52
7.3.240.0120.00516.41
7.3.230.0080.00916.61
7.3.210.0000.01716.49
7.3.200.0190.00016.33
7.3.190.0090.00916.57
7.3.180.0060.01016.38
7.3.170.0150.00616.45
7.3.160.0100.00716.40
7.3.80.0160.00614.82
7.3.70.0070.00714.76
7.3.60.0070.01314.72
7.3.50.0030.01614.58
7.3.40.0030.01014.71
7.3.30.0000.01814.63
7.3.20.0370.01014.82
7.3.10.0320.00815.04
7.3.00.0250.00614.83
7.2.330.0100.00716.78
7.2.320.0070.01016.75
7.2.310.0070.01316.60
7.2.300.0140.00716.56
7.2.290.0110.00816.73
7.2.210.0140.00614.68
7.2.200.0150.00315.07
7.2.190.0060.01215.01
7.2.180.0090.00615.09
7.2.170.0060.00914.78
7.2.160.0080.01014.86
7.2.150.0270.00415.00
7.2.140.0350.00714.95
7.2.130.0250.00314.89
7.2.120.0210.00915.15
7.2.110.0240.00314.86
7.2.100.0230.00814.78
7.2.90.0290.00315.11
7.2.80.0200.00914.92
7.2.70.0260.01015.39
7.2.60.0140.01815.05
7.2.50.0240.00815.24
7.2.40.0250.00315.12
7.2.30.0270.00315.10
7.2.20.0330.01615.07
7.2.10.0230.01215.10
7.2.00.0280.00014.80
7.1.310.0190.01113.97
7.1.300.0360.00013.59
7.1.290.0290.00413.90
7.1.280.0230.00414.02
7.1.270.0310.00613.94
7.1.260.0250.00413.67
7.1.250.0260.00714.06

preferences:
166.48 ms | 403 KiB | 5 Q