3v4l.org

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

Class Bar: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.19 ms | 1394 KiB | 15 Q