3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php print_r(unserialize('4')); print_r(unserialize('a:2:{s:16:"ERA/EMA Discount";i:50;s:27:"Early Registration Discount";i:50;}'));
Output for 4.3.2 - 7.1.0
Notice: unserialize(): Error at offset 0 of 1 bytes in /in/kl7Ao on line 2 Array ( [ERA/EMA Discount] => 50 [Early Registration Discount] => 50 )
Output for 4.3.0 - 4.3.1
Notice: unserialize() [http://www.php.net/function.unserialize]: Error at offset 0 of 1 bytes in /in/kl7Ao on line 2 Array ( [ERA/EMA Discount] => 50 [Early Registration Discount] => 50 )