3v4l.org

run code in 500+ PHP versions simultaneously
<?php function somefunc($a, $b, $c, $d, $e, $f, $g) { $args = get_defined_vars(); var_dump($a,$b,$c,$d,$e,$f,$g); foreach($args as $key => $val) { // assign lowered $val to variable named from $key value ${$key} = mb_strtolower($val); } echo "\n"; var_dump($a,$b,$c,$d,$e,$f,$g); } somefunc("DSDS","435r34","HFDUIWe","t45t4gfdfDW","DSDS","435r34","HFDUIWe");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EWGVg
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                                   'somefunc'
          1        SEND_VAL                                                     'DSDS'
          2        SEND_VAL                                                     '435r34'
          3        SEND_VAL                                                     'HFDUIWe'
          4        SEND_VAL                                                     't45t4gfdfDW'
          5        SEND_VAL                                                     'DSDS'
          6        SEND_VAL                                                     '435r34'
          7        SEND_VAL                                                     'HFDUIWe'
          8        DO_FCALL                                          0          
          9      > RETURN                                                       1

Function somefunc:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 20, Position 2 = 28
Branch analysis from position: 20
2 jumps found. (Code = 78) Position 1 = 21, Position 2 = 28
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
filename:       /in/EWGVg
function name:  somefunc
number of ops:  40
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $d, !4 = $e, !5 = $f, !6 = $g, !7 = $args, !8 = $val, !9 = $key
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
          2        RECV                                                 !2      
          3        RECV                                                 !3      
          4        RECV                                                 !4      
          5        RECV                                                 !5      
          6        RECV                                                 !6      
    4     7        INIT_FCALL                                                   'get_defined_vars'
          8        DO_ICALL                                             $10     
          9        ASSIGN                                                       !7, $10
    5    10        INIT_FCALL                                                   'var_dump'
         11        SEND_VAR                                                     !0
         12        SEND_VAR                                                     !1
         13        SEND_VAR                                                     !2
         14        SEND_VAR                                                     !3
         15        SEND_VAR                                                     !4
         16        SEND_VAR                                                     !5
         17        SEND_VAR                                                     !6
         18        DO_ICALL                                                     
    6    19      > FE_RESET_R                                           $13     !7, ->28
         20    > > FE_FETCH_R                                           ~14     $13, !8, ->28
         21    >   ASSIGN                                                       !9, ~14
    8    22        INIT_FCALL                                                   'mb_strtolower'
         23        SEND_VAR                                                     !8
         24        DO_ICALL                                             $17     
         25        FETCH_W                          local               $16     !9
         26        ASSIGN                                                       $16, $17
    6    27      > JMP                                                          ->20
         28    >   FE_FREE                                                      $13
   10    29        ECHO                                                         '%0A'
   11    30        INIT_FCALL                                                   'var_dump'
         31        SEND_VAR                                                     !0
         32        SEND_VAR                                                     !1
         33        SEND_VAR                                                     !2
         34        SEND_VAR                                                     !3
         35        SEND_VAR                                                     !4
         36        SEND_VAR                                                     !5
         37        SEND_VAR                                                     !6
         38        DO_ICALL                                                     
   12    39      > RETURN                                                       null

End of function somefunc

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
171.51 ms | 2238 KiB | 17 Q