3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $products = 'a:1:{i:0;a:3:{s:3:"pid";s:4:"1915";s:4:"data";a:2:{s:6:"module";s:10:"uc_product";s:10:"attributes";a:0:{}}s:3:"qty";i:1;}}'; $products = unserialize($products); print_r($products);
Output for 4.3.0 - 7.1.0
Array ( [0] => Array ( [pid] => 1915 [data] => Array ( [module] => uc_product [attributes] => Array ( ) ) [qty] => 1 ) )