3v4l.org

run code in 300+ PHP versions simultaneously
<?php $exists = 'ok'; $array = ['var' => 'var1', 'bar' => 'bar1', 'exists' => 'foo']; foreach ($array as $key => $value) { if (isset(${$key})) { ${'data_' . $key} = $value; } else { ${$key} = $value; } } var_dump($var, $bar, $exists, $data_exists);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 14
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 14
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 11
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/fvemu
function name:  (null)
number of ops:  22
compiled vars:  !0 = $exists, !1 = $array, !2 = $value, !3 = $key, !4 = $var, !5 = $bar, !6 = $data_exists
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'ok'
    4     1        ASSIGN                                                   !1, <array>
    6     2      > FE_RESET_R                                       $9      !1, ->14
          3    > > FE_FETCH_R                                       ~10     $9, !2, ->14
          4    >   ASSIGN                                                   !3, ~10
    7     5        ISSET_ISEMPTY_VAR                             4          !3
          6      > JMPZ                                                     ~12, ->11
    8     7    >   CONCAT                                           ~13     'data_', !3
          8        FETCH_W                      local               $14     ~13
          9        ASSIGN                                                   $14, !2
         10      > JMP                                                      ->13
   10    11    >   FETCH_W                      local               $16     !3
         12        ASSIGN                                                   $16, !2
    6    13    > > JMP                                                      ->3
         14    >   FE_FREE                                                  $9
   14    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !4
         17        SEND_VAR                                                 !5
         18        SEND_VAR                                                 !0
         19        SEND_VAR                                                 !6
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.12 ms | 1395 KiB | 15 Q