3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = json_decode('{"client":"4","gateWay":"1","store":"store.shop.com", "valid":"true","po":34535,"additionalPO":23423,"customerNotes":"", "orderItems":[{"item":"123","quantity":10,"supplierLotNo":"", "customsValue":"","customsDescription":"","hsCode":""}, {"item":"345","quantity":50}], "shippingInfos":[{"address":{"city":"Chennai", "country":"India","postalCode":"86715","state":"TN", "streetAddress1":"6971 North Street","streetAddress2":null}, "contact":{"company":null,"email":"info@store.com","firstName":"test", "lastName":"test","phoneNo":null},"ServiceId":"3","thirdPartyAccountNo":"", "signatureConfirmation":false,"saturdayDelivery":false}]}',true); function getUniqueObjectKeyPaths($array, $parentKey = "") { $keys = []; foreach ($array as $parentKey => $v) { if (is_array($v)) { $nestedKeys = getUniqueObjectKeyPaths($v, $parentKey); foreach($nestedKeys as $index => $key) { if (!is_numeric($parentKey) && !is_numeric($key)) { $nestedKeys[$index] = $parentKey . "->" . $key; } } array_push($keys, ...$nestedKeys); } elseif (!is_numeric($parentKey)) { $keys[] = $parentKey; } } return $keys; } var_export(getUniqueObjectKeyPaths($array));

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.0090.01016.66
8.5.00.0100.01220.04
8.4.150.0020.00114.05
8.4.140.0170.00617.73
8.4.130.0170.00420.39
8.4.120.0100.00920.79
8.4.110.0160.00422.46
8.4.100.0110.00917.63
8.4.90.0140.00618.92
8.4.80.0030.00517.77
8.4.70.0080.00117.78
8.4.60.0150.00717.64
8.4.50.0040.00518.78
8.4.40.0150.00419.38
8.4.30.0080.00820.64
8.4.20.0070.00318.65
8.4.10.0060.00319.48
8.3.280.0090.01118.56
8.3.270.0140.00516.46
8.3.260.0140.00516.68
8.3.250.0120.00718.82
8.3.240.0110.00718.86
8.3.230.0120.00616.70
8.3.220.0050.00317.11
8.3.210.0090.01016.92
8.3.200.0110.00916.71
8.3.190.0050.00317.07
8.3.180.0110.00818.90
8.3.170.0070.01117.31
8.3.160.0040.00416.98
8.3.150.0140.00417.08
8.3.140.0120.00316.79
8.3.130.0150.00318.25
8.3.120.0070.01321.02
8.3.110.0080.00016.63
8.3.100.0060.00324.06
8.3.90.0040.00426.77
8.3.80.0060.00316.63
8.3.70.0120.00916.75
8.3.60.0090.01216.50
8.3.50.0100.01018.34
8.3.40.0110.01118.78
8.3.30.0070.00718.80
8.3.20.0070.00024.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.290.0100.00920.57
8.2.280.0090.01016.63
8.2.270.0110.00716.87
8.2.260.0120.00618.89
8.2.250.0040.00418.32
8.2.240.0130.00619.07
8.2.230.0030.00620.94
8.2.220.0000.01037.54
8.2.210.0080.00026.77
8.2.200.0090.00016.50
8.2.190.0060.01016.88
8.2.180.0060.01225.92
8.2.170.0170.00318.96
8.2.160.0030.01622.96
8.2.150.0050.00325.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0080.00020.87
8.2.110.0090.01219.05
8.2.100.0040.00717.84
8.2.90.0030.00619.34
8.2.80.0040.00417.97
8.2.70.0040.00418.05
8.2.60.0090.00018.22
8.2.50.0050.00318.10
8.2.40.0040.00419.47
8.2.30.0050.00218.14
8.2.20.0040.00418.09
8.2.10.0030.00521.11
8.2.00.0050.00219.36
8.1.330.0080.01022.11
8.1.320.0120.01316.17
8.1.310.0030.00618.41
8.1.300.0030.00616.38
8.1.290.0030.00618.88
8.1.280.0070.00725.92
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0060.00328.09
8.1.240.0200.00722.10
8.1.230.0080.00321.02
8.1.220.0080.00017.79
8.1.210.0030.00618.77
8.1.200.0090.00017.48
8.1.190.0060.00317.35
8.1.180.0050.00318.10
8.1.170.0040.00418.66
8.1.160.0000.00718.98
8.1.150.0070.00018.97
8.1.140.0000.00718.89
8.1.130.0000.00720.18
8.1.120.0050.00317.43
8.1.110.0020.00517.47
8.1.100.0040.00417.52
8.1.90.0090.00017.42
8.1.80.0000.00817.52
8.1.70.0060.00317.52
8.1.60.0000.00717.61
8.1.50.0040.00417.57
8.1.40.0080.00017.57
8.1.30.0050.00517.63
8.1.20.0030.00717.56
8.1.10.0080.00017.56
8.1.00.0000.00917.55
8.0.300.0050.00218.77
8.0.290.0080.00016.88
8.0.280.0030.00618.40
8.0.270.0030.00318.12
8.0.260.0030.00318.55
8.0.250.0050.00216.98
8.0.240.0040.00417.01
8.0.230.0090.00016.98
8.0.220.0000.00616.93
8.0.210.0030.00316.98
8.0.200.0000.00816.98
8.0.190.0050.00317.00
8.0.180.0040.00417.01
8.0.170.0060.00317.00
8.0.160.0040.00416.80
8.0.150.0030.00316.91
8.0.140.0000.00716.76
8.0.130.0030.00313.36
8.0.120.0030.00616.77
8.0.110.0030.00517.01
8.0.100.0000.00716.90
8.0.90.0000.00716.80
8.0.80.0080.00816.94
8.0.70.0040.00417.00
8.0.60.0000.00816.79
8.0.50.0000.00716.85
8.0.30.0110.01116.91
8.0.20.0100.01417.03
8.0.10.0060.01517.03
8.0.00.0120.00917.11
7.4.330.0050.00015.55
7.4.320.0060.00016.65
7.4.300.0030.00316.52
7.4.290.0030.00316.58
7.4.280.0080.00016.47
7.4.270.0030.00316.57
7.4.260.0050.00013.39
7.4.250.0050.00216.61
7.4.240.0030.00616.62
7.4.230.0030.00316.55
7.4.220.0050.00316.75
7.4.210.0080.00716.65
7.4.200.0030.00316.39
7.4.160.0100.01016.61
7.4.150.0150.00416.67
7.4.140.0090.00916.48
7.4.130.0040.01516.41
7.4.120.0090.01216.44
7.4.110.0130.00716.55
7.4.100.0070.01316.68
7.4.90.0040.01616.53
7.4.80.0110.00416.34
7.4.70.0110.00816.55
7.4.60.0070.01116.43
7.4.50.0090.01516.63
7.4.40.0060.01316.39
7.4.30.0100.01016.43
7.4.20.0150.00616.43
7.4.10.0100.01316.53
7.4.00.0120.00916.52
7.3.330.0060.00316.42
7.3.320.0000.00613.41
7.3.310.0000.00716.37
7.3.300.0000.00716.38
7.3.290.0060.01116.38
7.3.270.0120.00916.32
7.3.260.0150.00716.41
7.3.250.0070.01316.37
7.3.240.0030.01616.39
7.3.230.0090.00916.41
7.3.220.0100.01016.32
7.3.210.0080.01116.26
7.3.200.0140.00616.38
7.3.190.0040.01516.34
7.3.180.0090.01216.36
7.3.170.0060.01216.36
7.3.160.0100.01016.33
7.3.150.0090.00616.33
7.3.140.0100.00716.35
7.3.130.0100.01016.40
7.3.120.0060.01316.33
7.3.110.0030.01616.29
7.3.100.0130.00416.27
7.3.90.0070.01316.61
7.3.80.0080.01216.34
7.3.70.0090.01116.38
7.3.60.0060.01316.46
7.3.50.0110.00916.50
7.3.40.0180.00016.45
7.3.30.0130.01016.54
7.3.20.0170.00716.54
7.3.10.0160.00016.40
7.3.00.0150.00716.43

preferences:
36.07 ms | 403 KiB | 5 Q