3v4l.org

run code in 500+ 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']; echo "\n"; extract($order); echo $id;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dqBjT
function name:  (null)
number of ops:  20
compiled vars:  !0 = $jsonString, !1 = $array, !2 = $order, !3 = $id
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                                             $5      
          5        ASSIGN                                                       !1, $5
   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                                          ~9      !2, 'custom'
         13        ECHO                                                         ~9
   22    14        ECHO                                                         '%0A'
   24    15        INIT_FCALL                                                   'extract'
         16        SEND_REF                                                     !2
         17        DO_ICALL                                                     
   25    18        ECHO                                                         !3
         19      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
163.79 ms | 3015 KiB | 16 Q