3v4l.org

run code in 300+ PHP versions simultaneously
<?php $val = 'a:21:{s:8:"customer";s:754:"a:25:{s:2:"id";i:1;s:8:"postcode";s:6:"600053";s:4:"city";s:7:"chennai";s:9:"address_1";s:4:"test";s:7:"address";s:4:"test";s:9:"address_2";s:6:"tesing";s:5:"state";s:2:"TN";s:7:"country";s:2:"IN";s:17:"shipping_postcode";s:6:"600053";s:13:"shipping_city";s:7:"chennai";s:18:"shipping_address_1";s:4:"test";s:16:"shipping_address";s:4:"test";s:18:"shipping_address_2";s:6:"tesing";s:14:"shipping_state";s:2:"TN";s:16:"shipping_country";s:2:"IN";s:13:"is_vat_exempt";b:0;s:19:"calculated_shipping";b:1;s:10:"first_name";s:4:"ajay";s:9:"last_name";s:5:"kumar";s:7:"company";s:7:"bambeeq";s:5:"phone";s:9:"978986465";s:5:"email";s:21:"venkat.net7@gmail.com";s:19:"shipping_first_name";s:0:"";s:18:"shipping_last_name";s:0:"";s:16:"shipping_company";s:0:"";}";s:21:"removed_cart_contents";s:6:"a:0:{}";s:10:"wc_notices";N;s:21:"chosen_payment_method";s:3:"cod";s:4:"cart";s:336:"a:1:{s:32:"24ffd641e828ce024eda885bf8754e58";a:9:{s:10:"product_id";i:8;s:12:"variation_id";i:21;s:9:"variation";a:1:{s:14:"attribute_size";s:6:"250 gm";}s:8:"quantity";i:1;s:10:"line_total";d:5;s:13:"line_subtotal";d:5;s:8:"line_tax";d:0;s:17:"line_subtotal_tax";d:0;s:13:"line_tax_data";a:2:{s:5:"total";a:0:{}s:8:"subtotal";a:0:{}}}}";s:15:"applied_coupons";s:6:"a:0:{}";s:23:"coupon_discount_amounts";s:6:"a:0:{}";s:27:"coupon_discount_tax_amounts";s:6:"a:0:{}";s:19:"cart_contents_total";d:5;s:5:"total";i:0;s:8:"subtotal";i:5;s:15:"subtotal_ex_tax";i:5;s:9:"tax_total";i:0;s:5:"taxes";s:6:"a:0:{}";s:14:"shipping_taxes";s:6:"a:0:{}";s:13:"discount_cart";i:0;s:17:"discount_cart_tax";i:0;s:14:"shipping_total";i:0;s:18:"shipping_tax_total";i:0;s:9:"fee_total";i:0;s:4:"fees";s:6:"a:0:{}";}'; print_r(unserialize($val[0]['cart']));

preferences:
53.19 ms | 402 KiB | 5 Q