3v4l.org

run code in 300+ PHP versions simultaneously
<?php function acceptsObject(\stdClass $o) { var_dump(get_class($o)); } $anonymousObject = new \stdClass(); acceptsObject($anonymousObject);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YuD2G
function name:  (null)
number of ops:  7
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          
          6      > RETURN                                                   1

Function acceptsobject:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YuD2G
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:
142.6 ms | 1397 KiB | 16 Q