3v4l.org

run code in 500+ PHP versions simultaneously
<?php function somefunc(&$a, &$b, &$c, &$d, &$e, &$f, &$g) { foreach (get_defined_vars() as &$v) { $v = mb_strtolower($v); } } $a = 'HÈllo1'; $b = 'HÈllo2'; $c = 'HÈllo3'; $d = 'HÈllo4'; $e = 'HÈllo5'; $f = 'HÈllo6'; $g = 'HÈllo6'; somefunc($a, $b, $c, $d, $e, $f, $g); var_export([$a, $b, $c, $d, $e, $f, $g]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8j6SZ
function name:  (null)
number of ops:  27
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $d, !4 = $e, !5 = $f, !6 = $g
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    9     0  E >   ASSIGN                                                       !0, 'H%C3%88llo1'
   10     1        ASSIGN                                                       !1, 'H%C3%88llo2'
   11     2        ASSIGN                                                       !2, 'H%C3%88llo3'
   12     3        ASSIGN                                                       !3, 'H%C3%88llo4'
   13     4        ASSIGN                                                       !4, 'H%C3%88llo5'
   14     5        ASSIGN                                                       !5, 'H%C3%88llo6'
   15     6        ASSIGN                                                       !6, 'H%C3%88llo6'
   17     7        INIT_FCALL                                                   'somefunc'
          8        SEND_REF                                                     !0
          9        SEND_REF                                                     !1
         10        SEND_REF                                                     !2
         11        SEND_REF                                                     !3
         12        SEND_REF                                                     !4
         13        SEND_REF                                                     !5
         14        SEND_REF                                                     !6
         15        DO_FCALL                                          0          
   18    16        INIT_FCALL                                                   'var_export'
         17        INIT_ARRAY                                           ~15     !0
         18        ADD_ARRAY_ELEMENT                                    ~15     !1
         19        ADD_ARRAY_ELEMENT                                    ~15     !2
         20        ADD_ARRAY_ELEMENT                                    ~15     !3
         21        ADD_ARRAY_ELEMENT                                    ~15     !4
         22        ADD_ARRAY_ELEMENT                                    ~15     !5
         23        ADD_ARRAY_ELEMENT                                    ~15     !6
         24        SEND_VAL                                                     ~15
         25        DO_ICALL                                                     
         26      > RETURN                                                       1

Function somefunc:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 11, Position 2 = 17
Branch analysis from position: 11
2 jumps found. (Code = 126) Position 1 = 12, Position 2 = 17
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/8j6SZ
function name:  somefunc
number of ops:  19
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $d, !4 = $e, !5 = $f, !6 = $g, !7 = $v
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                                             $8      
          9        SEPARATE                                             $8      $8
         10      > FE_RESET_RW                                          $9      $8, ->17
         11    > > FE_FETCH_RW                                                  $9, !7, ->17
    5    12    >   INIT_FCALL                                                   'mb_strtolower'
         13        SEND_VAR                                                     !7
         14        DO_ICALL                                             $10     
         15        ASSIGN                                                       !7, $10
    4    16      > JMP                                                          ->11
         17    >   FE_FREE                                                      $9
    7    18      > RETURN                                                       null

End of function somefunc

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
172.85 ms | 2198 KiB | 17 Q