3v4l.org

run code in 500+ PHP versions simultaneously
<?php class MyClass { static function method() { echo "hi\n"; } } function callMe(callable $hi) { $hi(); } callMe('MyClass::method');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Kkr3F
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   17     0  E >   INIT_FCALL                                                   'callme'
          1        SEND_VAL                                                     'MyClass%3A%3Amethod'
          2        DO_FCALL                                          0          
          3      > RETURN                                                       1

Function callme:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Kkr3F
function name:  callMe
number of ops:  4
compiled vars:  !0 = $hi
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   13     0  E >   RECV                                                 !0      
   14     1        INIT_DYNAMIC_CALL                                            !0
          2        DO_FCALL                                          0          
   15     3      > RETURN                                                       null

End of function callme

Class MyClass:
Function method:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Kkr3F
function name:  method
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   ECHO                                                         'hi%0A'
    9     1      > RETURN                                                       null

End of function method

End of class MyClass.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
177.84 ms | 3124 KiB | 14 Q