3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace some\amespace; class bar { function foo() { return "foo"; } } var_dump (is_callable(array('same\amespace\bar', 'foo'), true));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pJPfc
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_NS_FCALL_BY_NAME                                    'some%5Camespace%5Cvar_dump'
          1        INIT_NS_FCALL_BY_NAME                                    'some%5Camespace%5Cis_callable'
          2        SEND_VAL_EX                                              <array>
          3        SEND_VAL_EX                                              <true>
          4        DO_FCALL                                      0  $0      
          5        SEND_VAR_NO_REF_EX                                       $0
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

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

End of function foo

End of class some\amespace\bar.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.47 ms | 1394 KiB | 17 Q