3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{"ok":"1","result": [{"update_id": "123", "message":{"message_id":"123","date":"1512046846","contact":{"first_name":"Mike","phone_number":"111-111-11111"}}}]}'; $update = json_decode($json); var_dump($update); echo "Phone: " . $update->result[0]->message->contact->phone_number;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7OXJk
function name:  (null)
number of ops:  16
compiled vars:  !0 = $json, !1 = $update
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7B%22ok%22%3A%221%22%2C%22result%22%3A+%5B%7B%22update_id%22%3A+%22123%22%2C+%22message%22%3A%7B%22message_id%22%3A%22123%22%2C%22date%22%3A%221512046846%22%2C%22contact%22%3A%7B%22first_name%22%3A%22Mike%22%2C%22phone_number%22%3A%22111-111-11111%22%7D%7D%7D%5D%7D'
    5     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
    7     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
    9     8        FETCH_OBJ_R                                      ~6      !1, 'result'
          9        FETCH_DIM_R                                      ~7      ~6, 0
         10        FETCH_OBJ_R                                      ~8      ~7, 'message'
         11        FETCH_OBJ_R                                      ~9      ~8, 'contact'
         12        FETCH_OBJ_R                                      ~10     ~9, 'phone_number'
         13        CONCAT                                           ~11     'Phone%3A+', ~10
         14        ECHO                                                     ~11
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.81 ms | 998 KiB | 15 Q