3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { return new stdClass; } $foo1 = foo(); $foo2 = foo(); $r = new ReflectionObject(foo()); var_dump((string) $r); /*var_dump( foo(), foo() );*/
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/leSO6
function name:  (null)
number of ops:  17
compiled vars:  !0 = $foo1, !1 = $foo2, !2 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'foo'
          1        DO_FCALL                                      0  $3      
          2        ASSIGN                                                   !0, $3
   10     3        INIT_FCALL                                               'foo'
          4        DO_FCALL                                      0  $5      
          5        ASSIGN                                                   !1, $5
   12     6        NEW                                              $7      'ReflectionObject'
          7        INIT_FCALL                                               'foo'
          8        DO_FCALL                                      0  $8      
          9        SEND_VAR_NO_REF_EX                                       $8
         10        DO_FCALL                                      0          
         11        ASSIGN                                                   !2, $7
   13    12        INIT_FCALL                                               'var_dump'
         13        CAST                                          6  ~11     !2
         14        SEND_VAL                                                 ~11
         15        DO_ICALL                                                 
   18    16      > RETURN                                                   1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/leSO6
function name:  foo
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   NEW                                              $0      'stdClass'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   $0
    7     3*     > RETURN                                                   null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.89 ms | 1397 KiB | 18 Q