3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Herp { protected function derp() { echo "I'm public Herp::derp()"; } } var_dump(is_callable(array(new Herp(), 'derp')));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OWUqi
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'is_callable'
          2        NEW                                              $0      'Herp'
          3        DO_FCALL                                      0          
          4        INIT_ARRAY                                       ~2      $0
          5        ADD_ARRAY_ELEMENT                                ~2      'derp'
          6        SEND_VAL                                                 ~2
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Class Herp:
Function derp:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OWUqi
function name:  derp
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     'I%27m+public+Herp%3A%3Aderp%28%29'
    6     1      > RETURN                                                   null

End of function derp

End of class Herp.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.21 ms | 1394 KiB | 17 Q