3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_export(unserialize('O:8:"stdClass":2:{s:6:"result";O:8:"stdClass":24:{s:2:"id";i:1303524;s:5:"state";s:15:"host_to_confirm";s:8:"check_in";s:10:"2014-08-04";s:9:"check_out";s:10:"2014-08-07";s:10:"num_guests";i:1;s:12:"last_message";s:129:"本次快速预订的付款已得到确认。只要房东确认房屋在住宿期间可供租用,则立即预订下该房屋。";s:13:"rental_amount";i:15;s:14:"additional_fee";i:0;s:8:"subtotal";i:15;s:3:"fee";i:3;s:5:"total";i:18;s:13:"currency_code";s:3:"EUR";s:12:"total_in_usd";i:25;s:12:"deposit_type";s:4:"cash";s:14:"deposit_amount";i:300;s:21:"deposit_currency_code";s:3:"EUR";s:15:"express_booking";b:1;s:26:"express_booking_expires_at";s:25:"2014-06-19T11:54:55+02:00";s:3:"url";s:45:"https://roomorama.com/guest/inquiries/1303524";s:10:"created_at";s:19:"2014-06-17 09:52:23";s:10:"updated_at";s:19:"2014-06-17 09:54:55";s:4:"room";O:8:"stdClass":3:{s:2:"id";i:189215;s:5:"title";s:12:"TI Room #002";s:9:"thumbnail";s:89:"https://staging-assets.roomorama-cache.com/photos/rooms/2208279/2208279_search_result.jpg";}s:4:"host";O:8:"stdClass":3:{s:2:"id";i:519679;s:7:"display";s:10:"ti_staging";s:3:"url";s:38:"https://roomorama.com/users/ti_staging";}s:8:"messages";a:1:{i:0;O:8:"stdClass":3:{s:7:"message";s:129:"本次快速预订的付款已得到确认。只要房东确认房屋在住宿期间可供租用,则立即预订下该房屋。";s:10:"created_at";s:19:"2014-06-17 09:54:55";s:7:"_empty_";N;}}}s:6:"status";i:200;}'));
Output for 5.1.0 - 5.6.28, 7.0.0 - 7.1.0
stdClass::__set_state(array( 'result' => stdClass::__set_state(array( 'id' => 1303524, 'state' => 'host_to_confirm', 'check_in' => '2014-08-04', 'check_out' => '2014-08-07', 'num_guests' => 1, 'last_message' => '本次快速预订的付款已得到确认。只要房东确认房屋在住宿期间可供租用,则立即预订下该房屋。', 'rental_amount' => 15, 'additional_fee' => 0, 'subtotal' => 15, 'fee' => 3, 'total' => 18, 'currency_code' => 'EUR', 'total_in_usd' => 25, 'deposit_type' => 'cash', 'deposit_amount' => 300, 'deposit_currency_code' => 'EUR', 'express_booking' => true, 'express_booking_expires_at' => '2014-06-19T11:54:55+02:00', 'url' => 'https://roomorama.com/guest/inquiries/1303524', 'created_at' => '2014-06-17 09:52:23', 'updated_at' => '2014-06-17 09:54:55', 'room' => stdClass::__set_state(array( 'id' => 189215, 'title' => 'TI Room #002', 'thumbnail' => 'https://staging-assets.roomorama-cache.com/photos/rooms/2208279/2208279_search_result.jpg', )), 'host' => stdClass::__set_state(array( 'id' => 519679, 'display' => 'ti_staging', 'url' => 'https://roomorama.com/users/ti_staging', )), 'messages' => array ( 0 => stdClass::__set_state(array( 'message' => '本次快速预订的付款已得到确认。只要房东确认房屋在住宿期间可供租用,则立即预订下该房屋。', 'created_at' => '2014-06-17 09:54:55', '_empty_' => NULL, )), ), )), 'status' => 200, ))
Output for hhvm-3.10.0 - 3.12.0
stdClass::__set_state(array( 'result' => stdClass::__set_state(array( 'id' => 1303524, 'state' => 'host_to_confirm', 'check_in' => '2014-08-04', 'check_out' => '2014-08-07', 'num_guests' => 1, 'last_message' => '本次快速预订的付款已得到确认。只要房东确认房屋在住宿期间可供租用,则立即预订下该房屋。', 'rental_amount' => 15, 'additional_fee' => 0, 'subtotal' => 15, 'fee' => 3, 'total' => 18, 'currency_code' => 'EUR', 'total_in_usd' => 25, 'deposit_type' => 'cash', 'deposit_amount' => 300, 'deposit_currency_code' => 'EUR', 'express_booking' => true, 'express_booking_expires_at' => '2014-06-19T11:54:55+02:00', 'url' => 'https://roomorama.com/guest/inquiries/1303524', 'created_at' => '2014-06-17 09:52:23', 'updated_at' => '2014-06-17 09:54:55', 'room' => stdClass::__set_state(array( 'id' => 189215, 'title' => 'TI Room #002', 'thumbnail' => 'https://staging-assets.roomorama-cache.com/photos/rooms/2208279/2208279_search_result.jpg', )), 'host' => stdClass::__set_state(array( 'id' => 519679, 'display' => 'ti_staging', 'url' => 'https://roomorama.com/users/ti_staging', )), 'messages' => array ( 0 => stdClass::__set_state(array( 'message' => '本次快速预订的付款已得到确认。只要房东确认房屋在住宿期间可供租用,则立即预订下该房屋。', 'created_at' => '2014-06-17 09:54:55', '_empty_' => NULL, )), ), )), 'status' => 200, ))
Output for 5.0.0 - 5.0.5
class stdClass { public $result = class stdClass { public $id = 1303524; public $state = 'host_to_confirm'; public $check_in = '2014-08-04'; public $check_out = '2014-08-07'; public $num_guests = 1; public $last_message = '本次快速预订的付款已得到确认。只要房东确认房屋在住宿期间可供租用,则立即预订下该房屋。'; public $rental_amount = 15; public $additional_fee = 0; public $subtotal = 15; public $fee = 3; public $total = 18; public $currency_code = 'EUR'; public $total_in_usd = 25; public $deposit_type = 'cash'; public $deposit_amount = 300; public $deposit_currency_code = 'EUR'; public $express_booking = true; public $express_booking_expires_at = '2014-06-19T11:54:55+02:00'; public $url = 'https://roomorama.com/guest/inquiries/1303524'; public $created_at = '2014-06-17 09:52:23'; public $updated_at = '2014-06-17 09:54:55'; public $room = class stdClass { public $id = 189215; public $title = 'TI Room #002'; public $thumbnail = 'https://staging-assets.roomorama-cache.com/photos/rooms/2208279/2208279_search_result.jpg'; }; public $host = class stdClass { public $id = 519679; public $display = 'ti_staging'; public $url = 'https://roomorama.com/users/ti_staging'; }; public $messages = array ( 0 => class stdClass { public $message = '本次快速预订的付款已得到确认。只要房东确认房屋在住宿期间可供租用,则立即预订下该房屋。'; public $created_at = '2014-06-17 09:54:55'; public $_empty_ = NULL; }, ); }; public $status = 200; }
Output for 4.3.0 - 4.4.9
class stdClass { var $result = class stdClass { var $id = 1303524; var $state = 'host_to_confirm'; var $check_in = '2014-08-04'; var $check_out = '2014-08-07'; var $num_guests = 1; var $last_message = '本次快速预订的付款已得到确认。只要房东确认房屋在住宿期间可供租用,则立即预订下该房屋。'; var $rental_amount = 15; var $additional_fee = 0; var $subtotal = 15; var $fee = 3; var $total = 18; var $currency_code = 'EUR'; var $total_in_usd = 25; var $deposit_type = 'cash'; var $deposit_amount = 300; var $deposit_currency_code = 'EUR'; var $express_booking = true; var $express_booking_expires_at = '2014-06-19T11:54:55+02:00'; var $url = 'https://roomorama.com/guest/inquiries/1303524'; var $created_at = '2014-06-17 09:52:23'; var $updated_at = '2014-06-17 09:54:55'; var $room = class stdClass { var $id = 189215; var $title = 'TI Room #002'; var $thumbnail = 'https://staging-assets.roomorama-cache.com/photos/rooms/2208279/2208279_search_result.jpg'; }; var $host = class stdClass { var $id = 519679; var $display = 'ti_staging'; var $url = 'https://roomorama.com/users/ti_staging'; }; var $messages = array ( 0 => class stdClass { var $message = '本次快速预订的付款已得到确认。只要房东确认房屋在住宿期间可供租用,则立即预订下该房屋。'; var $created_at = '2014-06-17 09:54:55'; var $_empty_ = NULL; }, ); }; var $status = 200; }