3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '[{"a":1,"b":2,"c":3,"d":4,"e":5},{"a":1,"b":2,"c":3,"d":4,"e":5}]'; $args = json_decode($json); foreach($args as $arg) { print_r($arg); print_r($arg->a); }
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/GN02b
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, '%5B%7B%22a%22%3A1%2C%22b%22%3A2%2C%22c%22%3A3%2C%22d%22%3A4%2C%22e%22%3A5%7D%2C%7B%22a%22%3A1%2C%22b%22%3A2%2C%22c%22%3A3%2C%22d%22%3A4%2C%22e%22%3A5%7D%5D'
    4     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
    5     5      > FE_RESET_R                                       $6      !1, ->15
          6    > > FE_FETCH_R                                               $6, !2, ->15
    7     7    >   INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                                 
    8    10        INIT_FCALL                                               'print_r'
         11        FETCH_OBJ_R                                      ~8      !2, 'a'
         12        SEND_VAL                                                 ~8
         13        DO_ICALL                                                 
    5    14      > JMP                                                      ->6
         15    >   FE_FREE                                                  $6
   10    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.06 ms | 1395 KiB | 17 Q