3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = ' [ {"identifier":1,"title":"hello","tags":["a","b","c"],"cats":["a","b","c"]}, {"identifier":2,"title":"semblance","tags":["a","b","c"],"cats":["a","b","c"]} ]'; $args = json_decode($json); foreach($args as $arg) { print_r($arg); print_r($arg->identifier); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 15
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 15
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/SU7ef
function name:  (null)
number of ops:  17
compiled vars:  !0 = $json, !1 = $args, !2 = $arg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%0A%5B%0A%7B%22identifier%22%3A1%2C%22title%22%3A%22hello%22%2C%22tags%22%3A%5B%22a%22%2C%22b%22%2C%22c%22%5D%2C%22cats%22%3A%5B%22a%22%2C%22b%22%2C%22c%22%5D%7D%2C%0A%7B%22identifier%22%3A2%2C%22title%22%3A%22semblance%22%2C%22tags%22%3A%5B%22a%22%2C%22b%22%2C%22c%22%5D%2C%22cats%22%3A%5B%22a%22%2C%22b%22%2C%22c%22%5D%7D%0A%5D'
    9     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
   10     5      > FE_RESET_R                                       $6      !1, ->15
          6    > > FE_FETCH_R                                               $6, !2, ->15
   12     7    >   INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                                 
   13    10        INIT_FCALL                                               'print_r'
         11        FETCH_OBJ_R                                      ~8      !2, 'identifier'
         12        SEND_VAL                                                 ~8
         13        DO_ICALL                                                 
   10    14      > JMP                                                      ->6
         15    >   FE_FREE                                                  $6
   15    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.78 ms | 1386 KiB | 17 Q