3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Foo { public function __construct() { $this->callMe('self::methodName'); } public function callMe(callable $callback) { call_user_func($callback); } public function methodName() {} } new Foo();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NXrAH
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   15     0  E >   NEW                                                  $0      'Foo'
          1        DO_FCALL                                          0          
          2        FREE                                                         $0
          3      > RETURN                                                       1

Class Foo:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NXrAH
function name:  __construct
number of ops:  4
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   INIT_METHOD_CALL                                             'callMe'
          1        SEND_VAL_EX                                                  'self%3A%3AmethodName'
          2        DO_FCALL                                          0          
    6     3      > RETURN                                                       null

End of function __construct

Function callme:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NXrAH
function name:  callMe
number of ops:  4
compiled vars:  !0 = $callback
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   RECV                                                 !0      
    9     1        INIT_USER_CALL                                    0          'call_user_func', !0
          2        DO_FCALL                                          0          
   10     3      > RETURN                                                       null

End of function callme

Function methodname:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NXrAH
function name:  methodName
number of ops:  1
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   12     0  E > > RETURN                                                       null

End of function methodname

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
156.16 ms | 1857 KiB | 13 Q