3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.85 ms | 1394 KiB | 21 Q