3v4l.org

run code in 300+ PHP versions simultaneously
<?php function w3rfunction($value,$key) { echo "$key : $value<br />"; } $a = '{"Title": "The Cuckoos Calling", "Author": "Robert Galbraith", "Detail": { "Publisher": "Little Brown" } }'; $j1 = json_decode($a,true); array_walk_recursive($j1,"w3rfunction");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Z1ZKF
function name:  (null)
number of ops:  11
compiled vars:  !0 = $a, !1 = $j1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, '%7B%22Title%22%3A+%22The+Cuckoos+Calling%22%2C++%0A++++++%22Author%22%3A+%22Robert+Galbraith%22%2C++%0A++++++%22Detail%22%3A+++%0A++++++%7B++%0A++++++++%22Publisher%22%3A+%22Little+Brown%22++%0A+++++++%7D++%0A+++++++%7D'
   14     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
   15     6        INIT_FCALL                                               'array_walk_recursive'
          7        SEND_REF                                                 !1
          8        SEND_VAL                                                 'w3rfunction'
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Function w3rfunction:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Z1ZKF
function name:  w3rfunction
number of ops:  8
compiled vars:  !0 = $value, !1 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    5     2        ROPE_INIT                                     4  ~3      !1
          3        ROPE_ADD                                      1  ~3      ~3, '+%3A+'
          4        ROPE_ADD                                      2  ~3      ~3, !0
          5        ROPE_END                                      3  ~2      ~3, '%3Cbr+%2F%3E'
          6        ECHO                                                     ~2
    6     7      > RETURN                                                   null

End of function w3rfunction

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.19 ms | 1387 KiB | 17 Q