3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = '{"articles":[{"ID":"1","Title":"Welcome","Content":"This is the first article."}]}'; $final_res = json_decode($a); echo '<pre>'; print_r($final_res); echo '</pre><br>'; echo 'Content: ' . $final_res->articles[0]->Content;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/q8jlQ
function name:  (null)
number of ops:  16
compiled vars:  !0 = $a, !1 = $final_res
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7B%22articles%22%3A%5B%7B%22ID%22%3A%221%22%2C%22Title%22%3A%22Welcome%22%2C%22Content%22%3A%22This+is+the+first+article.%22%7D%5D%7D'
    4     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
    6     5        ECHO                                                     '%3Cpre%3E'
    7     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
    8     9        ECHO                                                     '%3C%2Fpre%3E%3Cbr%3E'
    9    10        FETCH_OBJ_R                                      ~6      !1, 'articles'
         11        FETCH_DIM_R                                      ~7      ~6, 0
         12        FETCH_OBJ_R                                      ~8      ~7, 'Content'
         13        CONCAT                                           ~9      'Content%3A+', ~8
         14        ECHO                                                     ~9
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
299.86 ms | 1010 KiB | 15 Q