3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Hoge { public static function fuga() {} } var_dump(is_callable(Hoge::class, 'fuga')); var_dump(is_callable(Hoge::class, 'piyo'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5XMgg
function name:  (null)
number of ops:  15
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'is_callable'
          2        SEND_VAL                                                 'Hoge'
          3        SEND_VAL                                                 'fuga'
          4        DO_ICALL                                         $0      
          5        SEND_VAR                                                 $0
          6        DO_ICALL                                                 
    9     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'is_callable'
          9        SEND_VAL                                                 'Hoge'
         10        SEND_VAL                                                 'piyo'
         11        DO_ICALL                                         $2      
         12        SEND_VAR                                                 $2
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

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

End of function fuga

End of class Hoge.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.41 ms | 1395 KiB | 17 Q