3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = '{"id":0}'; $arr2 = '[{"id": 626, "name": "Aaron Wolfson", "contactID": "48499", "eventID": "325", "status": "Registered", "emergency": "", "dietary": "", "special": ""},{"id": 627, "name": "Aaron Wolfson", "contactID": "48499", "eventID": "331", "status": "Attended", "emergency": "", "dietary": "", "special": ""}]'; $decode = print_r(json_decode($arr, true)); echo $decode['id']; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L9M9d
function name:  (null)
number of ops:  13
compiled vars:  !0 = $arr, !1 = $arr2, !2 = $decode
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%7B%22id%22%3A0%7D'
    3     1        ASSIGN                                                   !1, '%5B%7B%22id%22%3A+626%2C+%22name%22%3A+%22Aaron+Wolfson%22%2C+%22contactID%22%3A+%2248499%22%2C+%22eventID%22%3A+%22325%22%2C+%22status%22%3A+%22Registered%22%2C+%22emergency%22%3A+%22%22%2C+%22dietary%22%3A+%22%22%2C+%22special%22%3A+%22%22%7D%2C%7B%22id%22%3A+627%2C+%22name%22%3A+%22Aaron+Wolfson%22%2C+%22contactID%22%3A+%2248499%22%2C+%22eventID%22%3A+%22331%22%2C+%22status%22%3A+%22Attended%22%2C+%22emergency%22%3A+%22%22%2C+%22dietary%22%3A+%22%22%2C+%22special%22%3A+%22%22%7D%5D'
    4     2        INIT_FCALL                                               'print_r'
          3        INIT_FCALL                                               'json_decode'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 <true>
          6        DO_ICALL                                         $5      
          7        SEND_VAR                                                 $5
          8        DO_ICALL                                         $6      
          9        ASSIGN                                                   !2, $6
    5    10        FETCH_DIM_R                                      ~8      !2, 'id'
         11        ECHO                                                     ~8
    6    12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.15 ms | 1394 KiB | 17 Q