3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_export(serialize(array ( 'bookcommand' => array ( 'productcode' => 'MX-CUNHTL', 'departuredate' => '2015-04-29', 'linkcode' => 'LBS', 'itemnumber' => 1300, 'inclusionnumber' => 0, 'ispreacc' => 'N', 'ispostacc' => 'N', 'brandid' => 'EGT', 'supplierid' => 'MX-CUNLBS', 'serviceid' => 'JS', 'duration' => 3, 'mask' => 'A', 'qcurrency' => 'USD', 'sellmethod' => 'WEB', 'extsvcref' => '553f8ecb253f9', ), 'metaData' => array ( 'locationcode' => 'ZONE9', 'roomPrice' => '780.00', 'hotelId' => '101', 'roomId' => '686', ), 'serviceseq' => array ( 0 => 1, ), )));
based on Qp1tR
Output for 4.3.0 - 7.2.0
'a:3:{s:11:"bookcommand";a:15:{s:11:"productcode";s:9:"MX-CUNHTL";s:13:"departuredate";s:10:"2015-04-29";s:8:"linkcode";s:3:"LBS";s:10:"itemnumber";i:1300;s:15:"inclusionnumber";i:0;s:8:"ispreacc";s:1:"N";s:9:"ispostacc";s:1:"N";s:7:"brandid";s:3:"EGT";s:10:"supplierid";s:9:"MX-CUNLBS";s:9:"serviceid";s:2:"JS";s:8:"duration";i:3;s:4:"mask";s:1:"A";s:9:"qcurrency";s:3:"USD";s:10:"sellmethod";s:3:"WEB";s:9:"extsvcref";s:13:"553f8ecb253f9";}s:8:"metaData";a:4:{s:12:"locationcode";s:5:"ZONE9";s:9:"roomPrice";s:6:"780.00";s:7:"hotelId";s:3:"101";s:6:"roomId";s:3:"686";}s:10:"serviceseq";a:1:{i:0;i:1;}}'