3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data = unserialize('a:5:{s:8:"currency";s:3:"USD";s:9:"downloads";s:75:"a:1:{i:0;a:3:{s:2:"id";s:4:"1749";s:7:"options";a:0:{}s:8:"quantity";i:1;}}";s:9:"user_info";s:144:"a:6:{s:2:"id";i:1;s:5:"email";s:8:"ni@lk.it";s:10:"first_name";s:6:"Nicola";s:9:"last_name";s:0:"";s:8:"discount";s:4:"none";s:7:"address";b:0;}";s:12:"cart_details";s:254:"a:1:{i:0;a:9:{s:4:"name";s:4:"Test";s:2:"id";s:4:"1749";s:11:"item_number";a:3:{s:2:"id";s:4:"1749";s:7:"options";a:0:{}s:8:"quantity";i:1;}s:10:"item_price";d:20;s:8:"quantity";i:1;s:8:"discount";i:0;s:8:"subtotal";d:20;s:3:"tax";d:0;s:5:"price";d:20;}}";s:3:"tax";d:0;}'); var_dump($data);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(5) { ["currency"]=> string(3) "USD" ["downloads"]=> string(75) "a:1:{i:0;a:3:{s:2:"id";s:4:"1749";s:7:"options";a:0:{}s:8:"quantity";i:1;}}" ["user_info"]=> string(144) "a:6:{s:2:"id";i:1;s:5:"email";s:8:"ni@lk.it";s:10:"first_name";s:6:"Nicola";s:9:"last_name";s:0:"";s:8:"discount";s:4:"none";s:7:"address";b:0;}" ["cart_details"]=> string(254) "a:1:{i:0;a:9:{s:4:"name";s:4:"Test";s:2:"id";s:4:"1749";s:11:"item_number";a:3:{s:2:"id";s:4:"1749";s:7:"options";a:0:{}s:8:"quantity";i:1;}s:10:"item_price";d:20;s:8:"quantity";i:1;s:8:"discount";i:0;s:8:"subtotal";d:20;s:3:"tax";d:0;s:5:"price";d:20;}}" ["tax"]=> float(0) }