3v4l.org

run code in 300+ PHP versions simultaneously
<?php function someFunction() { } $functionVariable = 'someFunction'; var_dump(is_callable($functionVariable, false, $callable_name)); // bool(true) echo $callable_name, "\n"; // someFunction
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tIBSa
function name:  (null)
number of ops:  12
compiled vars:  !0 = $functionVariable, !1 = $callable_name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, 'someFunction'
    9     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'is_callable'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 <false>
          5        SEND_REF                                                 !1
          6        DO_ICALL                                         $3      
          7        SEND_VAR                                                 $3
          8        DO_ICALL                                                 
   11     9        ECHO                                                     !1
         10        ECHO                                                     '%0A'
         11      > RETURN                                                   1

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

End of function somefunction

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.79 ms | 1394 KiB | 17 Q