3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cl = function () {}; 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/tac9U
function name:  (null)
number of ops:  20
compiled vars:  !0 = $cl
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Ftac9U%3A2%240'
          1        ASSIGN                                                   !0, ~1
    4     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'is_callable'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        SEND_VAR                                                 $3
          7        DO_ICALL                                                 
    5     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'is_callable'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 <true>
         12        DO_ICALL                                         $5      
         13        SEND_VAR                                                 $5
         14        DO_ICALL                                                 
    7    15        INIT_FCALL                                               'var_dump'
         16        INSTANCEOF                                       ~7      !0, 'Closure'
         17        SEND_VAL                                                 ~7
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2Ftac9U%3A2%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tac9U
function name:  {closure}
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E > > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2Ftac9U%3A2%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.8 ms | 1395 KiB | 17 Q