3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tmp = ""; $array = array("gerard"=>json_decode("{id:'1',name:'GERRY'}"),"and"=>json_decode("{id:'2',name:'loves'}"),"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 = 15, Position 2 = 22
Branch analysis from position: 15
2 jumps found. (Code = 78) Position 1 = 16, Position 2 = 22
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
filename:       /in/L29DJ
function name:  (null)
number of ops:  25
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                                                 '%7Bid%3A%271%27%2Cname%3A%27GERRY%27%7D'
          3        DO_ICALL                                         $4      
          4        INIT_ARRAY                                       ~5      $4, 'gerard'
          5        INIT_FCALL                                               'json_decode'
          6        SEND_VAL                                                 '%7Bid%3A%272%27%2Cname%3A%27loves%27%7D'
          7        DO_ICALL                                         $6      
          8        ADD_ARRAY_ELEMENT                                ~5      $6, 'and'
          9        INIT_FCALL                                               'json_decode'
         10        SEND_VAL                                                 '%7Bid%3A%273%27%2Cname%3A%27IDA%27%7D'
         11        DO_ICALL                                         $7      
         12        ADD_ARRAY_ELEMENT                                ~5      $7, 'ida'
         13        ASSIGN                                                   !1, ~5
    4    14      > FE_RESET_R                                       $9      !1, ->22
         15    > > FE_FETCH_R                                               $9, !2, ->22
    6    16    >   ROPE_INIT                                     3  ~12     '+'
         17        FETCH_DIM_R                                      ~10     !2, 'id'
         18        ROPE_ADD                                      1  ~12     ~12, ~10
         19        ROPE_END                                      2  ~11     ~12, '+'
         20        ASSIGN_OP                                     8          !0, ~11
    4    21      > JMP                                                      ->15
         22    >   FE_FREE                                                  $9
    8    23        ECHO                                                     !0
    9    24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.24 ms | 940 KiB | 16 Q