3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{ "result":{ "Plaintiff":{ "2015":{ "SolutionsPerv":{ "To leave the decision (determination) of the court of first instance and the ruling of the court of appeal unchanged, and the cassation appeal - unsatisfied":{ "Amount":0, "Quantity":1 } }, "DecisionsApp":{ "To leave the decision (determination) of the court of first instance and the ruling of the court of appeal unchanged, and the cassation appeal - unsatisfied":{ "Amount":0, "Quantity":1 } }, "ResheniyaKass":{ "To leave the decision (determination) of the court of first instance and the ruling of the court of appeal unchanged, and the cassation appeal - unsatisfied":{ "Amount":0, "Quantity":1 } }, "ResheniyaNadz":[ ] } }, "Respondent":{ "2018":{ "SolutionsPerv":{ "Leave the ruling of the court of first instance and the ruling of the court of appeal unchanged, the cassation appeal without satisfaction":{ "Amount":24000, "Quantity":1 } }, "ResheniyaKass":{ "Leave the ruling of the court of first instance and the ruling of the court of appeal unchanged, the cassation appeal without satisfaction":{ "Amount":24000, "Quantity":1 } }, "ResheniyaNadz":[ ] }, "2019":{ "ResheniyaKass":{ "To leave the decision (determination) of the court of first instance and the ruling of the court of appeal unchanged, and the cassation appeal - unsatisfied":{ "Amount":0, "Quantity":1 } }, "ResheniyaNadz":[ ] }, "2020":{ "SolutionsPerv":{ "There is no decision":{ "Amount":0, "Quantity":2 } }, "DecisionsApp":[ ] } }, "Third Person":{ "2015":{ "SolutionsPerv":{ "To leave unchanged the decision and (or) the decision of the appellate instance, and the cassation appeal - without satisfaction (clause 1 of part 1 of article 287 of the APC)":{ "Amount":0, "Quantity":1 } }, "ResheniyaNadz":[ ] } } } }'; $debug = true; $arr = json_decode($json, true); $result = getArray($arr, 'Respondent'); // use e.g. Plaintiff or Respondent as $id print_r($result); function getArray(array $arr = [], string $id = '', &$store = []): array { foreach ($arr as $key => $value) { if ($key === $id && is_array($value)) { // identifier found return $store = $value; // store result array } elseif (is_array($value)) getArray($value, $id, $store); // keep digging } return $store; }

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.0100.01019.45
8.4.120.0110.00822.24
8.4.110.0110.00918.62
8.4.100.0100.01018.98
8.4.90.0150.00520.51
8.4.80.0060.01318.85
8.4.70.0150.00517.73
8.4.60.0040.00518.82
8.4.50.0070.00818.93
8.4.40.0180.00419.39
8.4.30.0070.01420.48
8.4.20.0040.00718.83
8.4.10.0040.01619.21
8.3.260.0150.00616.78
8.3.250.0110.00519.19
8.3.240.0130.00716.53
8.3.230.0100.00916.52
8.3.220.0110.00618.98
8.3.210.0140.00618.57
8.3.200.0050.00416.44
8.3.190.0090.00917.50
8.3.180.0120.00718.45
8.3.170.0060.01217.10
8.3.160.0110.00318.40
8.3.150.0040.00420.66
8.3.140.0090.00917.07
8.3.130.0000.00818.36
8.3.120.0080.00018.80
8.3.110.0030.00518.43
8.3.100.0060.00316.60
8.3.90.0040.01126.77
8.3.80.0030.00616.75
8.3.70.0100.00616.63
8.3.60.0120.00318.18
8.3.50.0110.00416.18
8.3.40.0110.00418.79
8.3.30.0070.00718.65
8.3.20.0070.00024.18
8.3.10.0030.00524.66
8.3.00.0040.00426.16
8.2.290.0140.00520.29
8.2.280.0150.00518.74
8.2.270.0050.00317.30
8.2.260.0030.00716.58
8.2.250.0090.00020.62
8.2.240.0070.01017.35
8.2.230.0030.00620.94
8.2.220.0110.00424.06
8.2.210.0000.01526.77
8.2.200.0060.00316.50
8.2.190.0180.00016.60
8.2.180.0070.00725.92
8.2.170.0100.01022.96
8.2.160.0070.01122.96
8.2.150.0040.00425.66
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0000.00922.20
8.2.100.0060.00617.72
8.2.90.0040.00417.75
8.2.80.0080.00018.76
8.2.70.0000.00817.63
8.2.60.0000.00917.93
8.2.50.0090.00018.07
8.2.40.0030.00520.07
8.2.30.0000.00718.13
8.2.20.0040.00417.96
8.2.10.0000.00719.38
8.2.00.0040.00419.39
8.1.330.0140.00422.00
8.1.320.0120.00716.25
8.1.310.0000.00820.27
8.1.300.0040.00420.10
8.1.290.0000.00930.84
8.1.280.0060.01025.92
8.1.270.0070.00023.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.01320.24
8.1.230.0090.00317.70
8.1.220.0000.00817.77
8.1.210.0060.00318.77
8.1.200.0060.00317.11
8.1.190.0030.00517.23
8.1.180.0000.00818.10
8.1.170.0060.00318.68
8.1.160.0050.00219.01
8.1.150.0040.00418.91
8.1.140.0070.00018.94
8.1.130.0030.00317.46
8.1.120.0060.00317.51
8.1.110.0040.00417.43
8.1.100.0040.00417.47
8.1.90.0070.00017.46
8.1.80.0050.00317.46
8.1.70.0030.00317.47
8.1.60.0000.00817.51
8.1.50.0000.00817.54
8.1.40.0040.00417.55
8.1.30.0040.00417.55
8.1.20.0030.00517.57
8.1.10.0000.00917.54
8.1.00.0000.00717.51
8.0.300.0100.00018.77
8.0.290.0040.00416.63
8.0.280.0040.00418.52
8.0.270.0000.00718.09
8.0.260.0000.00716.77
8.0.250.0060.00316.87
8.0.240.0000.00716.95
8.0.230.0060.00016.89
8.0.220.0050.00316.79
8.0.210.0040.00416.87
8.0.200.0030.00316.99
8.0.190.0050.00317.04
8.0.180.0040.00416.79
8.0.170.0030.00516.82
8.0.160.0040.00416.84
8.0.150.0070.00016.89
8.0.140.0000.00716.83
8.0.130.0000.00513.38
8.0.120.0030.00616.89
8.0.110.0080.00016.80
8.0.100.0090.00016.94
8.0.90.0050.00216.75
8.0.80.0030.01216.94
8.0.70.0040.00416.93
8.0.60.0000.00816.95
8.0.50.0040.00416.80
8.0.30.0070.00916.86
8.0.20.0050.01016.93
8.0.10.0070.01216.97
8.0.00.0080.01117.04
7.4.330.0050.00015.55
7.4.320.0000.00616.60
7.4.300.0030.00316.67
7.4.290.0040.00416.59
7.4.280.0040.00416.48
7.4.270.0070.00016.45
7.4.260.0050.00013.35
7.4.250.0000.00816.57
7.4.240.0020.00516.65
7.4.230.0070.00016.43
7.4.220.0020.00516.41
7.4.210.0030.01016.52
7.4.200.0040.00416.65
7.4.160.0050.01116.68
7.4.150.0100.00916.64
7.4.140.0120.00316.47
7.4.130.0100.00416.50
7.4.120.0070.01116.53
7.4.110.0100.00716.46
7.4.100.0060.01216.48
7.4.90.0110.00716.50
7.4.80.0070.01116.52
7.4.70.0040.01416.45
7.4.60.0100.01016.40
7.4.50.0080.00816.43
7.4.40.0050.01216.38
7.4.30.0070.01016.49
7.4.20.0060.00816.40
7.4.10.0070.00716.44
7.4.00.0020.01316.50
7.3.330.0000.00716.23
7.3.320.0030.00313.40
7.3.310.0030.00516.38
7.3.300.0030.00316.31
7.3.290.0080.00816.41
7.3.280.0130.00716.45
7.3.270.0070.00916.42
7.3.260.0050.01316.40
7.3.250.0070.00916.39
7.3.240.0110.00616.35
7.3.230.0120.00516.38
7.3.220.0080.00916.31
7.3.210.0060.01116.33
7.3.200.0070.01016.33
7.3.190.0110.00616.34
7.3.180.0060.01116.31
7.3.170.0060.01316.33
7.3.160.0060.01016.30
7.3.150.0090.00716.31
7.3.140.0060.01016.29
7.3.130.0070.00716.28
7.3.120.0070.00816.30
7.3.110.0060.01016.27
7.3.100.0050.01016.24
7.3.90.0130.00316.58
7.3.80.0080.00816.33
7.3.70.0080.01016.37
7.3.60.0110.00616.41
7.3.50.0070.01016.46
7.3.40.0060.01116.49
7.3.30.0090.00816.45
7.3.20.0030.01316.50
7.3.10.0050.01116.42
7.3.00.0080.00916.46

preferences:
30.23 ms | 403 KiB | 5 Q