3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = unserialize('a:2:{s:9:"messageId";s:9:"244674923";s:11:"reservation";a:7:{s:7:"agentId";s:3:"569";s:13:"reservationId";i:288565;s:9:"startTime";s:25:"2015-03-23T09:15:00+00:00";s:7:"endTime";s:25:"2015-03-23T10:30:00+00:00";s:4:"rfid";s:16:"00000000A614D673";s:15:"bookingPosition";i:1;s:19:"useSMSBackupChannel";b:0;}}'); $test = new ArrayObject($array); var_dump(serialize($test));
based on Fg9tI
Output for 5.3.0 - 7.2.0
string(346) "C:11:"ArrayObject":321:{x:i:0;a:2:{s:9:"messageId";s:9:"244674923";s:11:"reservation";a:7:{s:7:"agentId";s:3:"569";s:13:"reservationId";i:288565;s:9:"startTime";s:25:"2015-03-23T09:15:00+00:00";s:7:"endTime";s:25:"2015-03-23T10:30:00+00:00";s:4:"rfid";s:16:"00000000A614D673";s:15:"bookingPosition";i:1;s:19:"useSMSBackupChannel";b:0;}};m:a:0:{}}"
Output for 5.0.0 - 5.2.17
string(323) "O:11:"ArrayObject":2:{s:9:"messageId";s:9:"244674923";s:11:"reservation";a:7:{s:7:"agentId";s:3:"569";s:13:"reservationId";i:288565;s:9:"startTime";s:25:"2015-03-23T09:15:00+00:00";s:7:"endTime";s:25:"2015-03-23T10:30:00+00:00";s:4:"rfid";s:16:"00000000A614D673";s:15:"bookingPosition";i:1;s:19:"useSMSBackupChannel";b:0;}}"
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: arrayobject in /in/N25gV on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: arrayobject in /in/N25gV on line 5