3v4l.org

run code in 300+ PHP versions simultaneously
<?php function ra($test, $boo, $foo, $bar) { $wl = array('test', 'boo', 'foo', 'bar'); $arr = array(); foreach ($wl as $val) { $arr[$val] = $$val; } var_dump($arr); } ra('test','foo', 'bar');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/l3rCa
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'ra'
          1        SEND_VAL                                                 'test'
          2        SEND_VAL                                                 'foo'
          3        SEND_VAL                                                 'bar'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Function ra:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 12
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 12
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/l3rCa
function name:  ra
number of ops:  17
compiled vars:  !0 = $test, !1 = $boo, !2 = $foo, !3 = $bar, !4 = $wl, !5 = $arr, !6 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
    4     4        ASSIGN                                                   !4, <array>
    5     5        ASSIGN                                                   !5, <array>
    6     6      > FE_RESET_R                                       $9      !4, ->12
          7    > > FE_FETCH_R                                               $9, !6, ->12
    7     8    >   FETCH_R                      local               ~11     !6
          9        ASSIGN_DIM                                               !5, !6
         10        OP_DATA                                                  ~11
    6    11      > JMP                                                      ->7
         12    >   FE_FREE                                                  $9
    9    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !5
         15        DO_ICALL                                                 
   10    16      > RETURN                                                   null

End of function ra

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.26 ms | 1398 KiB | 16 Q