3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = '{"order":{"orderId":"TKTSVMMDTJ151001GUEST000P01","extOrderId":"f81d5dbc163da7e2695d9bb4042b654c","orderCreateDate":"2015-10-01T12:35:49.636+02:00","notifyUrl":"http://b2b-horyzont.przegladaj.eu/orders/orderNotify","customerIp":"62.133.131.130","merchantPosId":"145227","description":"Horyzont","currencyCode":"PLN","totalAmount":"2607","buyer":{"customerId":"guest","email":"arekrrr@gmail.com","phone":"123123123","firstName":"Arkadiusz","lastName":"Rado","language":"pl"},"payMethod":{"type":"PBL"},"status":"COMPLETED","products":[{"name":"Wizytówki","unitPrice":"1107","quantity":"1"}]},"localReceiptDateTime":"2015-10-01T12:35:56.350+02:00","properties":[{"name":"PAYMENT_ID","value":"602454718"}]}'; $text = json_encode($text); echo '<pre>'; print_r($text['order']); echo '</pre>';
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
<pre> Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /in/ks2ia:8 Stack trace: #0 {main} thrown in /in/ks2ia on line 8
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, 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
<pre> Warning: Illegal string offset 'order' in /in/ks2ia on line 8 "</pre>

preferences:
266.43 ms | 403 KiB | 376 Q