3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php print_r(unserialize('a:16:{s:5:"ftype";s:5:"round";s:3:"pas";a:3:{i:0;s:1:"1";i:1;s:1:"0";i:2;s:1:"0";}s:3:"cab";s:1:"1";s:3:"dep";s:3:"LED";s:3:"arr";s:3:"AYT";s:3:"dat";s:10:"2015-09-14";s:3:"ret";s:10:"2015-09-21";s:4:"fsel";a:2:{i:0;s:22:"17002:136494:129696:23";i:1;s:22:"16272:136494:129696:23";}s:7:"flights";a:2:{i:0;a:4:{s:3:"dep";s:3:"LED";s:3:"arr";s:3:"AYT";s:3:"dat";s:10:"2015-09-14";s:3:"cab";s:1:"1";}i:1;a:4:{s:3:"dep";s:3:"AYT";s:3:"arr";s:3:"LED";s:3:"dat";s:10:"2015-09-21";s:3:"cab";s:1:"1";}}s:6:"sField";s:3:"pra";s:6:"sOrder";s:3:"asc";s:4:"step";i:5;s:8:"fresults";a:2:{i:1;a:32:{s:3:"fid";s:22:"16272:136494:129696:23";s:3:"fln";s:7:"UN 9450";s:3:"dep";s:3:"AYT";s:3:"ddt";s:19:"2015-09-21 16:40:00";s:3:"dur";d:215;s:3:"drs";s:31:"03&nbsp;hours&nbsp;35&nbsp;mins";s:3:"arr";s:3:"LED";s:3:"adt";s:19:"2015-09-21 20:15:00";s:3:"prc";s:13:"0.00&nbsp;EUR";s:3:"pra";d:0;s:3:"pch";d:0;s:3:"pri";d:0;s:3:"prt";s:0:"";s:3:"avl";s:0:"";s:3:"ftp";s:7:"Charter";s:3:"ftt";s:7:"Charter";s:3:"arl";i:16362;s:3:"ars";s:0:"";s:3:"tsp";s:8:"Non-Stop";s:3:"arc";s:10:"Boeing 747";s:3:"acs";s:10:"Boeing 747";s:3:"pcc";s:0:"";s:3:"adl";s:1:"1";s:3:"chl";s:1:"0";s:3:"inf";s:1:"0";s:3:"ads";s:1:"1";s:3:"chs";s:1:"0";s:3:"ins";s:1:"0";s:3:"ptt";d:0;s:3:"ptc";s:13:"0.00&nbsp;EUR";s:3:"prd";s:26:"Roundtrip price per person";s:3:"lws";b:0;}i:0;a:32:{s:3:"fid";s:22:"17003:136494:129696:23";s:3:"fln";s:7:"UN 9460";s:3:"dep";s:3:"AYT";s:3:"ddt";s:19:"2015-09-21 23:40:00";s:3:"dur";d:255;s:3:"drs";s:31:"04&nbsp;hours&nbsp;15&nbsp;mins";s:3:"arr";s:3:"LED";s:3:"adt";s:19:"2015-09-22 03:55:00";s:3:"prc";s:13:"0.00&nbsp;EUR";s:3:"pra";d:0;s:3:"pch";d:0;s:3:"pri";d:0;s:3:"prt";s:0:"";s:3:"avl";s:0:"";s:3:"ftp";s:7:"Charter";s:3:"ftt";s:7:"Charter";s:3:"arl";i:8507;s:3:"ars";s:0:"";s:3:"tsp";s:8:"Non-Stop";s:3:"arc";s:10:"Boeing 747";s:3:"acs";s:10:"Boeing 747";s:3:"pcc";s:0:"";s:3:"adl";s:1:"1";s:3:"chl";s:1:"0";s:3:"inf";s:1:"0";s:3:"ads";s:1:"1";s:3:"chs";s:1:"0";s:3:"ins";s:1:"0";s:3:"ptt";d:0;s:3:"ptc";s:13:"0.00&nbsp;EUR";s:3:"prd";s:26:"Roundtrip price per person";s:3:"lws";b:0;}}s:6:"prices";a:6:{i:-3;s:2:"--";i:-2;s:2:"--";i:-1;s:2:"--";i:1;s:2:"--";i:2;s:2:"--";i:3;s:2:"--";}s:9:"srFilters";a:3:{s:5:"depap";a:1:{s:3:"AYT";s:3:"AYT";}s:5:"arrap";a:1:{s:3:"LED";s:3:"LED";}s:3:"arl";a:2:{i:8507;a:3:{s:3:"pra";d:0;s:3:"prc";s:13:"0.00&nbsp;EUR";s:4:"name";s:0:"";}i:16362;a:3:{s:3:"pra";d:0;s:3:"prc";s:13:"0.00&nbsp;EUR";s:4:"name";s:0:"";}}}s:10:"selFilters";a:0:{}}')); echo '################################'. PHP_EOL; print_r(unserialize('a:18:{s:5:"TOTAL";d:273.5;s:5:"RESNO";s:7:"5941063";s:8:"USERNAME";s:16:"wkiril@gmail.com";s:6:"STATUS";i:1;s:8:"DISCOUNT";i:0;s:9:"SELLPRICE";d:273.5;s:8:"BUYPRICE";N;s:6:"MPRATE";d:61.539999999999999;s:6:"IPADDR";s:9:"127.0.0.1";s:8:"TRIPTYPE";s:5:"round";s:3:"FEE";s:3:"0.0";s:2:"PT";i:2;s:8:"COMMENTS";s:3:"asd";s:7:"CREATED";s:19:"2015-09-10 12:40:20";s:9:"CREATEDBY";s:6:"system";s:6:"SOURCE";s:2:"23";s:6:"ORIGIN";s:3:"TVA";s:2:"ID";i:855;}')); echo '################################'. PHP_EOL; print_r(unserialize('a:7:{s:8:"booktype";s:6:"myself";s:3:"mob";s:10:"1234567890";s:3:"eml";s:16:"wkiril@gmail.com";s:3:"cem";s:16:"wkiril@gmail.com";s:3:"fnm";s:0:"";s:3:"lnm";s:0:"";s:3:"sms";s:1:"1";} pasData: a:3:{i:0;a:1:{i:0;a:12:{s:3:"BID";i:855;s:9:"FIRSTNAME";s:5:"KIRIL";s:8:"LASTNAME";s:6:"IVANOV";s:7:"DOCTYPE";s:1:"2";s:6:"DOCNUM";s:10:"1234567890";s:10:"EXPIRYDATE";s:10:"2019-01-03";s:9:"BIRTHDATE";s:10:"1973-02-02";s:4:"ISO3";s:3:"BGR";s:6:"GENDER";i:1;s:4:"TYPE";i:1;s:7:"CREATED";s:19:"2015-09-10 12:40:21";s:9:"CREATEDBY";s:6:"system";}}i:1;a:0:{}i:2;a:0:{}}')); echo '################################'. PHP_EOL; print_r(unserialize('a:3:{i:0;a:1:{i:0;a:12:{s:3:"BID";i:855;s:9:"FIRSTNAME";s:5:"KIRIL";s:8:"LASTNAME";s:6:"IVANOV";s:7:"DOCTYPE";s:1:"2";s:6:"DOCNUM";s:10:"1234567890";s:10:"EXPIRYDATE";s:10:"2019-01-03";s:9:"BIRTHDATE";s:10:"1973-02-02";s:4:"ISO3";s:3:"BGR";s:6:"GENDER";i:1;s:4:"TYPE";i:1;s:7:"CREATED";s:19:"2015-09-10 12:40:21";s:9:"CREATEDBY";s:6:"system";}}i:1;a:0:{}i:2;a:0:{}}'));
based on 9ujEo
Output for 5.3.17 - 7.2.0
Array ( [ftype] => round [pas] => Array ( [0] => 1 [1] => 0 [2] => 0 ) [cab] => 1 [dep] => LED [arr] => AYT [dat] => 2015-09-14 [ret] => 2015-09-21 [fsel] => Array ( [0] => 17002:136494:129696:23 [1] => 16272:136494:129696:23 ) [flights] => Array ( [0] => Array ( [dep] => LED [arr] => AYT [dat] => 2015-09-14 [cab] => 1 ) [1] => Array ( [dep] => AYT [arr] => LED [dat] => 2015-09-21 [cab] => 1 ) ) [sField] => pra [sOrder] => asc [step] => 5 [fresults] => Array ( [1] => Array ( [fid] => 16272:136494:129696:23 [fln] => UN 9450 [dep] => AYT [ddt] => 2015-09-21 16:40:00 [dur] => 215 [drs] => 03&nbsp;hours&nbsp;35&nbsp;mins [arr] => LED [adt] => 2015-09-21 20:15:00 [prc] => 0.00&nbsp;EUR [pra] => 0 [pch] => 0 [pri] => 0 [prt] => [avl] => [ftp] => Charter [ftt] => Charter [arl] => 16362 [ars] => [tsp] => Non-Stop [arc] => Boeing 747 [acs] => Boeing 747 [pcc] => [adl] => 1 [chl] => 0 [inf] => 0 [ads] => 1 [chs] => 0 [ins] => 0 [ptt] => 0 [ptc] => 0.00&nbsp;EUR [prd] => Roundtrip price per person [lws] => ) [0] => Array ( [fid] => 17003:136494:129696:23 [fln] => UN 9460 [dep] => AYT [ddt] => 2015-09-21 23:40:00 [dur] => 255 [drs] => 04&nbsp;hours&nbsp;15&nbsp;mins [arr] => LED [adt] => 2015-09-22 03:55:00 [prc] => 0.00&nbsp;EUR [pra] => 0 [pch] => 0 [pri] => 0 [prt] => [avl] => [ftp] => Charter [ftt] => Charter [arl] => 8507 [ars] => [tsp] => Non-Stop [arc] => Boeing 747 [acs] => Boeing 747 [pcc] => [adl] => 1 [chl] => 0 [inf] => 0 [ads] => 1 [chs] => 0 [ins] => 0 [ptt] => 0 [ptc] => 0.00&nbsp;EUR [prd] => Roundtrip price per person [lws] => ) ) [prices] => Array ( [-3] => -- [-2] => -- [-1] => -- [1] => -- [2] => -- [3] => -- ) [srFilters] => Array ( [depap] => Array ( [AYT] => AYT ) [arrap] => Array ( [LED] => LED ) [arl] => Array ( [8507] => Array ( [pra] => 0 [prc] => 0.00&nbsp;EUR [name] => ) [16362] => Array ( [pra] => 0 [prc] => 0.00&nbsp;EUR [name] => ) ) ) [selFilters] => Array ( ) ) ################################ Array ( [TOTAL] => 273.5 [RESNO] => 5941063 [USERNAME] => wkiril@gmail.com [STATUS] => 1 [DISCOUNT] => 0 [SELLPRICE] => 273.5 [BUYPRICE] => [MPRATE] => 61.54 [IPADDR] => 127.0.0.1 [TRIPTYPE] => round [FEE] => 0.0 [PT] => 2 [COMMENTS] => asd [CREATED] => 2015-09-10 12:40:20 [CREATEDBY] => system [SOURCE] => 23 [ORIGIN] => TVA [ID] => 855 ) ################################ Array ( [booktype] => myself [mob] => 1234567890 [eml] => wkiril@gmail.com [cem] => wkiril@gmail.com [fnm] => [lnm] => [sms] => 1 ) ################################ Array ( [0] => Array ( [0] => Array ( [BID] => 855 [FIRSTNAME] => KIRIL [LASTNAME] => IVANOV [DOCTYPE] => 2 [DOCNUM] => 1234567890 [EXPIRYDATE] => 2019-01-03 [BIRTHDATE] => 1973-02-02 [ISO3] => BGR [GENDER] => 1 [TYPE] => 1 [CREATED] => 2015-09-10 12:40:21 [CREATEDBY] => system ) ) [1] => Array ( ) [2] => Array ( ) )