3v4l.org

run code in 300+ PHP versions simultaneously
<?php $jsonString = '{ "order": { "id": "5RTQNACF", "created_at": "2012-12-09T21:23:41-08:00", "status": "completed", "total_btc": { "cents": 100000000, "currency_iso": "BTC" }, "custom": "order1234" } }'; $array = json_decode($jsonString, true); print_r($array); extract($array); echo $order['custom'];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7j8Om
function name:  (null)
number of ops:  15
compiled vars:  !0 = $jsonString, !1 = $array, !2 = $order
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%7B%0A%09%22order%22%3A+%7B%0A%09%09%22id%22%3A+%225RTQNACF%22%2C%0A%09%09%22created_at%22%3A+%222012-12-09T21%3A23%3A41-08%3A00%22%2C%0A%09%09%22status%22%3A+%22completed%22%2C%0A%09%09%22total_btc%22%3A+%7B%0A%09%09%09%22cents%22%3A+100000000%2C%0A%09%09%09%22currency_iso%22%3A+%22BTC%22%0A%09%09%7D%2C%0A%0A%09%09%22custom%22%3A+%22order1234%22%0A%09%7D%0A%7D'
   16     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
   17     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
   19     9        INIT_FCALL                                               'extract'
         10        SEND_REF                                                 !1
         11        DO_ICALL                                                 
   20    12        FETCH_DIM_R                                      ~8      !2, 'custom'
         13        ECHO                                                     ~8
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.21 ms | 1386 KiB | 19 Q