3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = '{"4":{"virtuemart_calc_id":4,"calc_name":"MwSt. 7%","calc_value":"7.0000","result":0.1498133},"3":{"virtuemart_calc_id":3,"calc_name":"MwSt. 19%","calc_value":"19.0000" ,"result":0.7904}}'; $array = unserialize($string); var_dump($array);
based on JAfMA
Output for 4.3.2 - 5.6.28, 7.0.0 - 7.1.0
Notice: unserialize(): Error at offset 0 of 187 bytes in /in/IjsP0 on line 3 bool(false)
Output for hhvm-3.10.0 - 3.12.0
Notice: Unable to unserialize: [{"4":{"virtuemart_calc_id":4,"calc_name":"MwSt. 7%","calc_value":"7.0000","result":0.1498133},"3":{"virtuemart_calc_id":3,"calc_name":"MwSt. 19%","calc_value":"19.0000" ,"result":0.7904}}]. Expected ':' but got '"'. in /in/IjsP0 on line 3 bool(false)
Output for 4.3.0 - 4.3.1
Notice: unserialize() [http://www.php.net/function.unserialize]: Error at offset 0 of 187 bytes in /in/IjsP0 on line 3 bool(false)