3v4l.org

run code in 300+ PHP versions simultaneously
<?php $TAB_a = "aaaaa"; $TAB['b'] = "bbbbb"; $TAB_paths = ["_a", "['b']"]; foreach ($TAB_paths as $key => $value) { echo "\n\n\${'TAB'.$value} : "; print_r(${'TAB'.$value}); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 17
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 17
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/Fp3GT
function name:  (null)
number of ops:  19
compiled vars:  !0 = $TAB_a, !1 = $TAB, !2 = $TAB_paths, !3 = $value, !4 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'aaaaa'
    4     1        ASSIGN_DIM                                               !1, 'b'
          2        OP_DATA                                                  'bbbbb'
    7     3        ASSIGN                                                   !2, <array>
    9     4      > FE_RESET_R                                       $8      !2, ->17
          5    > > FE_FETCH_R                                       ~9      $8, !3, ->17
          6    >   ASSIGN                                                   !4, ~9
   10     7        ROPE_INIT                                     3  ~12     '%0A%0A%24%7B%27TAB%27.'
          8        ROPE_ADD                                      1  ~12     ~12, !3
          9        ROPE_END                                      2  ~11     ~12, '%7D+%3A+'
         10        ECHO                                                     ~11
         11        INIT_FCALL                                               'print_r'
         12        CONCAT                                           ~14     'TAB', !3
         13        FETCH_R                      local               ~15     ~14
         14        SEND_VAL                                                 ~15
         15        DO_ICALL                                                 
    9    16      > JMP                                                      ->5
         17    >   FE_FREE                                                  $8
   11    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.7 ms | 1004 KiB | 14 Q