3v4l.org

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

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

End of function somefunction2

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.81 ms | 1394 KiB | 17 Q