3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { public function run() { array_walk($list = ['fuck', 'white'], [$this, 'sqlFilter']); var_dump($list); } private function sqlFilter($key, &$value) { $value = ucfirst($value); } } (new test)->run();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/t6v7Y
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $0      'test'
          1        DO_FCALL                                      0          
          2        INIT_METHOD_CALL                                         $0, 'run'
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

Class test:
Function run:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/t6v7Y
function name:  run
number of ops:  12
compiled vars:  !0 = $list
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'array_walk'
          1        ASSIGN                                           ~1      !0, <array>
          2        SEND_VAL_EX                                              ~1
          3        FETCH_THIS                                       ~2      
          4        INIT_ARRAY                                       ~3      ~2
          5        ADD_ARRAY_ELEMENT                                ~3      'sqlFilter'
          6        SEND_VAL                                                 ~3
          7        DO_ICALL                                                 
    6     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                                 
    7    11      > RETURN                                                   null

End of function run

Function sqlfilter:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/t6v7Y
function name:  sqlFilter
number of ops:  7
compiled vars:  !0 = $key, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    9     2        INIT_FCALL                                               'ucfirst'
          3        SEND_VAR                                                 !1
          4        DO_ICALL                                         $2      
          5        ASSIGN                                                   !1, $2
   10     6      > RETURN                                                   null

End of function sqlfilter

End of class test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.83 ms | 1396 KiB | 19 Q