3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function isEmptyArray($item) { if (is_array($item)) { return array_filter($item, 'isEmptyArray'); } if (!empty($item) || $item === "0") { return true; } return false; } function removeEmptyArrays($array) { $filteredArray = array_filter($array, 'isEmptyArray'); return $filteredArray; } $string='client_no=3286868&auth_key=K6htqteKvAFpJE4qaE655hTQRSVN9PGU&rest_call=create_acct_complete_m&billing_group[billing_group_row][0][billing_group_name]=&billing_group[billing_group_row][0][billing_group_description]=&billing_group[billing_group_row][0][client_billing_group_id]=&billing_group[billing_group_row][0][billing_group_idx]=&billing_group[billing_group_row][0][notify_method]=&billing_group[billing_group_row][0][notify_template_group]=&billing_group[billing_group_row][0][statement_template]='; parse_str($string, $output); var_dump(output); ?>
based on LZdot
Output for 7.2.0
Warning: Use of undefined constant output - assumed 'output' (this will throw an Error in a future version of PHP) in /in/E17mA on line 26 string(6) "output"
Output for 5.3.20 - 7.1.10
Notice: Use of undefined constant output - assumed 'output' in /in/E17mA on line 26 string(6) "output"