3v4l.org

run code in 300+ PHP versions simultaneously
<?php $vars['one'] = '31234'; $vars['two'] = 'sldf'; $vars['three'] = 1 - 1; $return_array = []; foreach ($vars as $key => $value){ echo "---------------Just value<br>"; var_dump($value); echo "<br>"; $value != '' ? ($return_array[$key] = $value) : null; echo "---------------array of key<br>"; var_dump($return_array[$key]); echo "<br>"; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 30
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 30
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 21
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
filename:       /in/sAdBo
function name:  (null)
number of ops:  32
compiled vars:  !0 = $vars, !1 = $return_array, !2 = $value, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN_DIM                                               !0, 'one'
          1        OP_DATA                                                  '31234'
    3     2        ASSIGN_DIM                                               !0, 'two'
          3        OP_DATA                                                  'sldf'
    4     4        ASSIGN_DIM                                               !0, 'three'
          5        OP_DATA                                                  0
    5     6        ASSIGN                                                   !1, <array>
    6     7      > FE_RESET_R                                       $8      !0, ->30
          8    > > FE_FETCH_R                                       ~9      $8, !2, ->30
          9    >   ASSIGN                                                   !3, ~9
    7    10        ECHO                                                     '---------------Just+value%3Cbr%3E'
    8    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                                 
    9    14        ECHO                                                     '%3Cbr%3E'
   10    15        IS_NOT_EQUAL                                             !2, ''
         16      > JMPZ                                                     ~12, ->21
         17    >   ASSIGN_DIM                                       ~13     !1, !3
         18        OP_DATA                                                  !2
         19        QM_ASSIGN                                        ~14     ~13
         20      > JMP                                                      ->22
         21    >   QM_ASSIGN                                        ~14     null
         22    >   FREE                                                     ~14
   11    23        ECHO                                                     '---------------array+of+key%3Cbr%3E'
   12    24        INIT_FCALL                                               'var_dump'
         25        FETCH_DIM_R                                      ~15     !1, !3
         26        SEND_VAL                                                 ~15
         27        DO_ICALL                                                 
   13    28        ECHO                                                     '%3Cbr%3E'
    6    29      > JMP                                                      ->8
         30    >   FE_FREE                                                  $8
   15    31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.99 ms | 1396 KiB | 15 Q