3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tmp = ""; $array = array("gerard"=>json_encode("{id:'1',name:'GERRY'}"),"and"=>json_encode("{id:'2',name:'loves'}"),"ida"=>json_encode("{id:'3',name:'IDA'}")); $array[] = "!!!"; foreach ($array as $arr) { $tmp .= " {$arr['id']} "; } echo $tmp; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 17, Position 2 = 24
Branch analysis from position: 17
2 jumps found. (Code = 78) Position 1 = 18, Position 2 = 24
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
filename:       /in/sv3Y9
function name:  (null)
number of ops:  27
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_encode'
          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_encode'
          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_encode'
         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        ASSIGN_DIM                                               !1
         15        OP_DATA                                                  '%21%21%21'
    5    16      > FE_RESET_R                                       $10     !1, ->24
         17    > > FE_FETCH_R                                               $10, !2, ->24
    7    18    >   ROPE_INIT                                     3  ~13     '+'
         19        FETCH_DIM_R                                      ~11     !2, 'id'
         20        ROPE_ADD                                      1  ~13     ~13, ~11
         21        ROPE_END                                      2  ~12     ~13, '+'
         22        ASSIGN_OP                                     8          !0, ~12
    5    23      > JMP                                                      ->17
         24    >   FE_FREE                                                  $10
    9    25        ECHO                                                     !0
   10    26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.03 ms | 1396 KiB | 15 Q