3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php //print_r(unserialize('a:2:{s:4:"cols";i:1;s:4:"rows";a:1:{i:1;a:1:{s:3:"tot";i:1;}}}')); print_r(unserialize('a:9:{s:4:"oper";s:3:"sum";s:9:"textPrime";s:10:"grandtext1";s:7:"textPre";s:3:"tyu";s:8:"textPost";s:4:"tyiu";s:4:"calc";s:3:"Yes";s:6:"prices";a:1:{i:0;s:12:"DISCOUNT_AMT";}s:10:"finalPrime";s:15:"grandtext1final";s:8:"finalPre";s:5:"asfas";s:9:"finalPost";s:5:"asfas";}')); print_r(unserialize('a:4:{s:4:"oper";s:5:"count";s:9:"textPrime";s:12:"groupsummary";s:7:"textPre";s:2:"g1";s:8:"textPost";s:2:"gn";}'));
Output for 4.3.0 - 7.1.0
Array ( [oper] => sum [textPrime] => grandtext1 [textPre] => tyu [textPost] => tyiu [calc] => Yes [prices] => Array ( [0] => DISCOUNT_AMT ) [finalPrime] => grandtext1final [finalPre] => asfas [finalPost] => asfas ) Array ( [oper] => count [textPrime] => groupsummary [textPre] => g1 [textPost] => gn )