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)); print_r(unserialize($res));
Output for 4.3.2 - 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[]= Notice: unserialize(): Error at offset 0 of 486 bytes in /in/pPYGY on line 4
Output for 4.3.0 - 4.3.1
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[]= Notice: unserialize() [http://www.php.net/function.unserialize]: Error at offset 0 of 486 bytes in /in/pPYGY on line 4