3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function importCommissions() { foreach (range('a', 'z') as $key => $data) { $data = range('a', 'z'); $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/4MTYM
function name:  (null)
number of ops:  9
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   NEW                                              $1      'Test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   17     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%2F4MTYM%3A8%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4MTYM
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     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%2F4MTYM%3A8%240

Class Test:
Function importcommissions:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 19
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 19
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/4MTYM
function name:  importCommissions
number of ops:  22
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, ->19
          5    > > FE_FETCH_R                                       ~4      $3, !0, ->19
          6    >   ASSIGN                                                   !1, ~4
    7     7        INIT_FCALL                                               'range'
          8        SEND_VAL                                                 'a'
          9        SEND_VAL                                                 'z'
         10        DO_ICALL                                         $6      
         11        ASSIGN                                                   !0, $6
    8    12        INIT_FCALL                                               'array_walk'
         13        SEND_REF                                                 !0
         14        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F4MTYM%3A8%240'
         15        SEND_VAL                                                 ~8
         16        DO_ICALL                                         $9      
         17        ASSIGN                                                   !0, $9
    6    18      > JMP                                                      ->5
         19    >   FE_FREE                                                  $3
   11    20      > RETURN                                                   !0
   12    21*     > RETURN                                                   null

End of function importcommissions

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.26 ms | 1392 KiB | 21 Q