3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Foo { } $foo = new Foo(); $foo->bar = 'baz'; $new = (new ReflectionObject($foo))->newInstance(); var_dump($foo, $new);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bb51A
function name:  (null)
number of ops:  16
compiled vars:  !0 = $foo, !1 = $new
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    6     0  E >   NEW                                                  $2      'Foo'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $2
    7     3        ASSIGN_OBJ                                                   !0, 'bar'
          4        OP_DATA                                                      'baz'
    9     5        NEW                                                  $6      'ReflectionObject'
          6        SEND_VAR_EX                                                  !0
          7        DO_FCALL                                          0          
          8        INIT_METHOD_CALL                                             $6, 'newInstance'
          9        DO_FCALL                                          0  $8      
         10        ASSIGN                                                       !1, $8
   11    11        INIT_FCALL                                                   'var_dump'
         12        SEND_VAR                                                     !0
         13        SEND_VAR                                                     !1
         14        DO_ICALL                                                     
         15      > RETURN                                                       1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
163.92 ms | 2533 KiB | 14 Q