3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $_sample_post = unserialize('a:40:{s:7:"orderID";s:9:"231789206";s:4:"name";s:9:"Ecom Help";s:7:"company";s:7:"Web.com";s:6:"email1";s:29:"ecom-mts@networksolutions.com";s:8:"address1";s:24:"12808 Gran Bay Parkway W";s:8:"address2";s:0:"";s:4:"city";s:12:"Jacksonville";s:5:"state";s:7:"Florida";s:3:"zip";s:5:"32258";s:7:"country";s:13:"United States";s:3:"fax";s:0:"";s:5:"phone";s:10:"8882523266";s:14:"secondaryphone";s:0:"";s:8:"cardtype";s:4:"Visa";s:8:"shipname";s:9:"Ecom Help";s:11:"shipCompany";s:7:"Web.com";s:12:"shipAddress1";s:24:"12808 Gran Bay Parkway W";s:12:"shipAddress2";s:0:"";s:8:"shipCity";s:12:"Jacksonville";s:9:"shipState";s:7:"Florida";s:7:"shipZip";s:5:"32258";s:11:"shipCountry";s:13:"United States";s:6:"status";s:8:"Accepted";s:4:"sku1";s:3:"001";s:8:"product1";s:15:"DatePicker Demo";s:9:"quantity1";s:1:"1";s:7:"option1";s:8:"Option 1";s:8:"option11";s:4:"asdf";s:8:"option21";s:5:"asdfa";s:11:"brand_logo1";s:64:"";s:6:"price1";s:5:"15.00";s:4:"sku2";s:3:"002";s:8:"product2";s:8:"Donation";s:9:"quantity2";s:1:"1";s:11:"brand_logo2";s:0:"";s:6:"price2";s:4:"5.00";s:5:"plist";s:17:"12500966,12501000";s:5:"Total";s:5:"20.00";s:10:"grandTotal";s:5:"20.00";s:7:"adtrack";s:1:"0";}'); var_dump($_sample_post);
based on lpVWj
Output for 4.3.10 - 4.4.9, 5.0.3 - 5.6.28, 7.0.0 - 7.1.0
Notice: unserialize(): Error at offset 982 of 1184 bytes in /in/4O27X on line 3 bool(false)
Output for hhvm-3.10.0 - 3.12.0
Notice: Unable to unserialize: [a:40:{s:7:"orderID";s:9:"231789206";s:4:"name";s:9:"Ecom Help";s:7:"company";s:7:"Web.com";s:6:"email1";s:29:"ecom-mts@networksolutions.com";s:8:"address1";s:24:"12808 Gran Bay Parkway W";s:8:"address2";s:0:"";s:4:"city";s:12:"Jacksonville";s:5:"state";s:7:"Florida";s:3:"zip";s:5:"32258";s:7:"country";s:13:"United States";s:3:"fax";s:0:"";s:5:"phone";s:10:"8882523266";s:14:"secondaryphone";s:0:"";s:8:"cardtype";s:4:"Visa";s:8:"shipname";s:9:"Ecom Help";s:11:"shipCompany";s:7:"Web.com";s:12:"shipAddress1";s:24:"12808 Gran Bay Parkway W";s:12:"shipAddress2";s:0:"";s:8:"shipCity";s:12:"Jacksonville";s:9:"shipState";s:7:"Florida";s:7:"shipZip";s:5:"32258";s:11:"shipCountry";s:13:"United States";s:6:"status";s:8:"Accepted";s:4:"sku1";s:3:"001";s:8:"product1";s:15:"DatePicker Demo";s:9:"quantity1";s:1:"1";s:7:"option1";s:8:"Option 1";s:8:"option11";s:4:"asdf";s:8:"option21";s:5:"asdfa";s:11:"brand_logo1";s:64:"";s:6:"price1";s:5:"15.00";s:4:"sku2";s:3:"002";s:8:"product2";s:8:"Donation";s:9:]. Expected '"' but got ':'. in /in/4O27X on line 3 bool(false)
Output for 4.3.2 - 4.3.9, 5.0.0 - 5.0.2
Notice: unserialize(): Error at offset 984 of 1184 bytes in /in/4O27X on line 3 bool(false)
Output for 4.3.0 - 4.3.1
Notice: unserialize() [http://www.php.net/function.unserialize]: Error at offset 984 of 1184 bytes in /in/4O27X on line 3 bool(false)