3v4l.org

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

Class foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.79 ms | 1394 KiB | 15 Q