3v4l.org

run code in 300+ PHP versions simultaneously
<?php $callable = "Class::czdayshortly"; if (is_callable($callable, FALSE, $text)) { echo "supr"; } else { echo "ook"; } $functionVariable = 'someFunction()'; var_dump(is_callable($functionVariable, false, $callable_name));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0mlit
function name:  (null)
number of ops:  20
compiled vars:  !0 = $callable, !1 = $text, !2 = $functionVariable, !3 = $callable_name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Class%3A%3Aczdayshortly'
    3     1        INIT_FCALL                                               'is_callable'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 <false>
          4        SEND_REF                                                 !1
          5        DO_ICALL                                         $5      
          6      > JMPZ                                                     $5, ->9
    4     7    >   ECHO                                                     'supr'
          8      > JMP                                                      ->10
    6     9    >   ECHO                                                     'ook'
    8    10    >   ASSIGN                                                   !2, 'someFunction%28%29'
   10    11        INIT_FCALL                                               'var_dump'
         12        INIT_FCALL                                               'is_callable'
         13        SEND_VAR                                                 !2
         14        SEND_VAL                                                 <false>
         15        SEND_REF                                                 !3
         16        DO_ICALL                                         $7      
         17        SEND_VAR                                                 $7
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.21 ms | 1395 KiB | 17 Q