3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 'O:8:"stdClass":5:{s:15:"HighestSeverity";s:7:"SUCCESS";s:13:"Notifications";O:8:"stdClass":5:{s:8:"Severity";s:7:"SUCCESS";s:6:"Source";s:4:"trck";s:4:"Code";s:1:"0";s:7:"Message";s:35:"Request was successfully processed.";s:16:"LocalizedMessage";s:35:"Request was successfully processed.";}s:17:"TransactionDetail";O:8:"stdClass":1:{s:21:"CustomerTransactionId";s:34:"*** Track Request v8 using PHP ***";}s:7:"Version";O:8:"stdClass":4:{s:9:"ServiceId";s:4:"trck";s:5:"Major";i:8;s:12:"Intermediate";i:0;s:5:"Minor";i:0;}s:21:"CompletedTrackDetails";O:8:"stdClass":6:{s:15:"HighestSeverity";s:7:"SUCCESS";s:13:"Notifications";O:8:"stdClass":5:{s:8:"Severity";s:7:"SUCCESS";s:6:"Source";s:4:"trck";s:4:"Code";s:1:"0";s:7:"Message";s:35:"Request was successfully processed.";s:16:"LocalizedMessage";s:35:"Request was successfully processed.";}s:16:"DuplicateWaybill";b:0;s:8:"MoreData";b:0;s:17:"TrackDetailsCount";i:0;s:12:"TrackDetails";O:8:"stdClass":8:{s:12:"Notification";O:8:"stdClass":5:{s:8:"Severity";s:5:"ERROR";s:6:"Source";s:4:"trck";s:4:"Code";s:4:"9040";s:7:"Message";s:84:"This tracking number cannot be found. Please check the number or contact the sender.";s:16:"LocalizedMessage";s:84:"This tracking number cannot be found. Please check the number or contact the sender.";}s:14:"TrackingNumber";s:22:"9611804797128302268252";s:12:"StatusDetail";O:8:"stdClass":1:{s:8:"Location";O:8:"stdClass":1:{s:11:"Residential";b:0;}}s:21:"PackageSequenceNumber";i:0;s:12:"PackageCount";i:0;s:16:"DeliveryAttempts";i:0;s:38:"TotalUniqueAddressCountInConsolidation";i:0;s:32:"DeliveryOptionEligibilityDetails";a:4:{i:0;O:8:"stdClass":2:{s:6:"Option";s:26:"INDIRECT_SIGNATURE_RELEASE";s:11:"Eligibility";s:10:"INELIGIBLE";}i:1;O:8:"stdClass":2:{s:6:"Option";s:28:"REDIRECT_TO_HOLD_AT_LOCATION";s:11:"Eligibility";s:10:"INELIGIBLE";}i:2;O:8:"stdClass":2:{s:6:"Option";s:7:"REROUTE";s:11:"Eligibility";s:10:"INELIGIBLE";}i:3;O:8:"stdClass":2:{s:6:"Option";s:10:"RESCHEDULE";s:11:"Eligibility";s:10:"INELIGIBLE";}}}}}'; $data = unserialize($a); echo $data['CompletedTrackDetails'];
Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
Fatal error: Uncaught Error: Cannot use object of type stdClass as array in /in/6160l:7 Stack trace: #0 {main} thrown in /in/6160l on line 7
Process exited with code 255.
Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40
Fatal error: Cannot use object of type stdClass as array in /in/6160l on line 7
Process exited with code 255.

preferences:
246.15 ms | 402 KiB | 372 Q