3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cl = 'strpos::test'; var_dump(is_callable($cl)); var_dump(is_callable($cl,true)); var_dump($cl instanceof Closure);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MRbOh
function name:  (null)
number of ops:  19
compiled vars:  !0 = $cl
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'strpos%3A%3Atest'
    4     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'is_callable'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                                 
    5     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'is_callable'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 <true>
         11        DO_ICALL                                         $4      
         12        SEND_VAR                                                 $4
         13        DO_ICALL                                                 
    7    14        INIT_FCALL                                               'var_dump'
         15        INSTANCEOF                                       ~6      !0, 'Closure'
         16        SEND_VAL                                                 ~6
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.32 ms | 1394 KiB | 17 Q