3v4l.org

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

Class MyClass: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.96 ms | 1394 KiB | 15 Q