3v4l.org

run code in 300+ PHP versions simultaneously
<?php function acceptsObject(\stdClass $o) { var_dump(get_class($o)); } $anonymousObject = new \stdClass(); acceptsObject($anonymousObject); acceptsObject(new DOMDocument());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/V8nfX
function name:  (null)
number of ops:  12
compiled vars:  !0 = $anonymousObject
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   NEW                                              $1      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    9     3        INIT_FCALL                                               'acceptsobject'
          4        SEND_VAR                                                 !0
          5        DO_FCALL                                      0          
   10     6        INIT_FCALL                                               'acceptsobject'
          7        NEW                                              $5      'DOMDocument'
          8        DO_FCALL                                      0          
          9        SEND_VAR                                                 $5
         10        DO_FCALL                                      0          
         11      > RETURN                                                   1

Function acceptsobject:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/V8nfX
function name:  acceptsObject
number of ops:  6
compiled vars:  !0 = $o
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'var_dump'
          2        GET_CLASS                                        ~1      !0
          3        SEND_VAL                                                 ~1
          4        DO_ICALL                                                 
    5     5      > RETURN                                                   null

End of function acceptsobject

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.19 ms | 1389 KiB | 17 Q