3v4l.org

run code in 300+ 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/dUt9l
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                                                 '%5CMyClass%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/dUt9l
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/dUt9l
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.0.0


preferences:
153.27 ms | 1388 KiB | 14 Q