3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tmp = ""; $array = array("gerard"=>json_decode('{"id":"1","name":"GERRY"}'),"ida"=>json_decode('{"id":"3","name":"IDA"}')); foreach ($array as $arr) { $tmp .= " {$arr['id']} "; } echo $tmp; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 18
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 18
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/tAd8U
function name:  (null)
number of ops:  21
compiled vars:  !0 = $tmp, !1 = $array, !2 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, ''
    3     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAL                                                 '%7B%22id%22%3A%221%22%2C%22name%22%3A%22GERRY%22%7D'
          3        DO_ICALL                                         $4      
          4        INIT_ARRAY                                       ~5      $4, 'gerard'
          5        INIT_FCALL                                               'json_decode'
          6        SEND_VAL                                                 '%7B%22id%22%3A%223%22%2C%22name%22%3A%22IDA%22%7D'
          7        DO_ICALL                                         $6      
          8        ADD_ARRAY_ELEMENT                                ~5      $6, 'ida'
          9        ASSIGN                                                   !1, ~5
    4    10      > FE_RESET_R                                       $8      !1, ->18
         11    > > FE_FETCH_R                                               $8, !2, ->18
    6    12    >   ROPE_INIT                                     3  ~11     '+'
         13        FETCH_DIM_R                                      ~9      !2, 'id'
         14        ROPE_ADD                                      1  ~11     ~11, ~9
         15        ROPE_END                                      2  ~10     ~11, '+'
         16        ASSIGN_OP                                     8          !0, ~10
    4    17      > JMP                                                      ->11
         18    >   FE_FREE                                                  $8
    8    19        ECHO                                                     !0
    9    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.68 ms | 1395 KiB | 15 Q