3v4l.org

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

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

End of function customfunction

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.48 ms | 1394 KiB | 17 Q