3v4l.org

run code in 500+ PHP versions simultaneously
<?php $object = (object)[ 'foo' => function() {return 'bar';}, ]; var_dump(method_exists($object, 'foo')); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Z5K7H
function name:  (null)
number of ops:  12
compiled vars:  !0 = $object
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   DECLARE_LAMBDA_FUNCTION                              ~1      [0]
          1        INIT_ARRAY                                           ~2      ~1, 'foo'
          2        CAST                                              8  ~3      ~2
    2     3        ASSIGN                                                       !0, ~3
    6     4        INIT_FCALL                                                   'var_dump'
          5        INIT_FCALL                                                   'method_exists'
          6        SEND_VAR                                                     !0
          7        SEND_VAL                                                     'foo'
          8        DO_ICALL                                             $5      
          9        SEND_VAR                                                     $5
         10        DO_ICALL                                                     
    7    11      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Z5K7H
function name:  {closure:/in/Z5K7H:3}
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E > > RETURN                                                       'bar'
          1*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
219.59 ms | 1971 KiB | 10 Q