3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $res = "month1%5B%5D=4&sap=721&name=uname&month1%5B%5D=10000.00&month2%5B%5D=10000.00&month3%5B%5D=0.00&month4%5B%5D=&month5%5B%5D=&month6%5B%5D=&month1%5B%5D=15000&month2%5B%5D=0.00&month3%5B%5D=0.00&month4%5B%5D=&month5%5B%5D=&month6%5B%5D=&month1%5B%5D=50&month2%5B%5D=50&month3%5B%5D=50&month4%5B%5D=&month5%5B%5D=&month6%5B%5D=&month1%5B%5D=15000&month2%5B%5D=10000&month3%5B%5D=0&month4%5B%5D=0&month5%5B%5D=0&month6%5B%5D=0&sap_data%5B%5D=&sap_data%5B%5D=&sap_data%5B%5D=&sap_data%5B%5D="; print_r(urldecode($res)); $output= array(); parse_str($res, $output); print_r($output);
Output for 4.3.0 - 7.1.0
month1[]=4&sap=721&name=uname&month1[]=10000.00&month2[]=10000.00&month3[]=0.00&month4[]=&month5[]=&month6[]=&month1[]=15000&month2[]=0.00&month3[]=0.00&month4[]=&month5[]=&month6[]=&month1[]=50&month2[]=50&month3[]=50&month4[]=&month5[]=&month6[]=&month1[]=15000&month2[]=10000&month3[]=0&month4[]=0&month5[]=0&month6[]=0&sap_data[]=&sap_data[]=&sap_data[]=&sap_data[]=Array ( [month1] => Array ( [0] => 4 [1] => 10000.00 [2] => 15000 [3] => 50 [4] => 15000 ) [sap] => 721 [name] => uname [month2] => Array ( [0] => 10000.00 [1] => 0.00 [2] => 50 [3] => 10000 ) [month3] => Array ( [0] => 0.00 [1] => 0.00 [2] => 50 [3] => 0 ) [month4] => Array ( [0] => [1] => [2] => [3] => 0 ) [month5] => Array ( [0] => [1] => [2] => [3] => 0 ) [month6] => Array ( [0] => [1] => [2] => [3] => 0 ) [sap_data] => Array ( [0] => [1] => [2] => [3] => ) )