3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function importCommissions() { foreach (range('a', 'z') as $key => $data) { $data = array_walk($data, function (&$item) { $item = utf8_encode($item); });; } return $data; } } $test = new Test(); var_dump($test->importCommissions());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qCKcj
function name:  (null)
number of ops:  9
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   NEW                                              $1      'Test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   16     3        INIT_FCALL                                               'var_dump'
          4        INIT_METHOD_CALL                                         !0, 'importCommissions'
          5        DO_FCALL                                      0  $4      
          6        SEND_VAR                                                 $4
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FqCKcj%3A7%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qCKcj
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'utf8_encode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $1      
          4        ASSIGN                                                   !0, $1
          5      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FqCKcj%3A7%240

Class Test:
Function importcommissions:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 14
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 14
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/qCKcj
function name:  importCommissions
number of ops:  17
compiled vars:  !0 = $data, !1 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 'a'
          2        SEND_VAL                                                 'z'
          3        DO_ICALL                                         $2      
          4      > FE_RESET_R                                       $3      $2, ->14
          5    > > FE_FETCH_R                                       ~4      $3, !0, ->14
          6    >   ASSIGN                                                   !1, ~4
    7     7        INIT_FCALL                                               'array_walk'
          8        SEND_REF                                                 !0
          9        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FqCKcj%3A7%240'
         10        SEND_VAL                                                 ~6
         11        DO_ICALL                                         $7      
         12        ASSIGN                                                   !0, $7
    6    13      > JMP                                                      ->5
         14    >   FE_FREE                                                  $3
   10    15      > RETURN                                                   !0
   11    16*     > RETURN                                                   null

End of function importcommissions

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.94 ms | 1400 KiB | 21 Q