3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json ='{ "response": { "result": "OK", "params": { "orderid": 144552513557, "transid": 737821904945243852, "steamid": 76561197972214334, "status": "Succeeded", "currency": "EUR", "time": "2015-10-22T14:46:34Z", "country": "DE", "usstate": "", "timecreated": "2015-10-22T14:46:10Z", "items": [ { "itemid": 3, "qty": 1, "amount": 2521, "vat": 479, "itemstatus": "Succeeded" } ] } } }'; var_dump(json_decode($json)); var_dump(json_decode($json, true, 512)); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sastS
function name:  (null)
number of ops:  16
compiled vars:  !0 = $json
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7B+%22response%22%3A+%7B+%22result%22%3A+%22OK%22%2C+%22params%22%3A+%7B+%22orderid%22%3A+144552513557%2C+%22transid%22%3A+737821904945243852%2C+%22steamid%22%3A+76561197972214334%2C+%22status%22%3A+%22Succeeded%22%2C+%22currency%22%3A+%22EUR%22%2C+%22time%22%3A+%222015-10-22T14%3A46%3A34Z%22%2C+%22country%22%3A+%22DE%22%2C+%22usstate%22%3A+%22%22%2C+%22timecreated%22%3A+%222015-10-22T14%3A46%3A10Z%22%2C+%22items%22%3A+%5B+%7B+%22itemid%22%3A+3%2C+%22qty%22%3A+1%2C+%22amount%22%3A+2521%2C+%22vat%22%3A+479%2C+%22itemstatus%22%3A+%22Succeeded%22+%7D+%5D+%7D+%7D+%7D'
    6     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'json_decode'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                                 
    7     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'json_decode'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 <true>
         11        SEND_VAL                                                 512
         12        DO_ICALL                                         $4      
         13        SEND_VAR                                                 $4
         14        DO_ICALL                                                 
    8    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.02 ms | 1399 KiB | 17 Q