3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class test { public function __construct() {} public function tests() {} } var_dump( is_callable( ["test",'tests'] ) );
based on i7Spu
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/9oUpa
function name:  (null)
number of ops:  8
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NOP                                                      
   9     1        INIT_FCALL                                               'var_dump'
         2        INIT_FCALL                                               'is_callable'
         3        SEND_VAL                                                 <array>
         4        DO_ICALL                                         $1      
         5        SEND_VAR                                                 $1
         6        DO_ICALL                                                 
         7      > RETURN                                                   1

Class test:
Function __construct:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/9oUpa
function name:  __construct
number of ops:  1
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   5     0  E > > RETURN                                                   null

End of function __construct

Function tests:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/9oUpa
function name:  tests
number of ops:  1
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   6     0  E > > RETURN                                                   null

End of function tests

End of class test.

Generated using Vulcan Logic Dumper, using php 7.3.0