3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = (object) []; $foo->bar = null; $baz = &$foo->bar; $baz = 'qux'; var_dump($foo->bar);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SUrgq
function name:  (null)
number of ops:  12
compiled vars:  !0 = $foo, !1 = $baz
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   CAST                                          8  ~2      <array>
          1        ASSIGN                                                   !0, ~2
    4     2        ASSIGN_OBJ                                               !0, 'bar'
          3        OP_DATA                                                  null
    5     4        FETCH_OBJ_W                                      $5      !0, 'bar'
          5        ASSIGN_REF                                               !1, $5
    6     6        ASSIGN                                                   !1, 'qux'
    7     7        INIT_FCALL                                               'var_dump'
          8        FETCH_OBJ_R                                      ~8      !0, 'bar'
          9        SEND_VAL                                                 ~8
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.29 ms | 1394 KiB | 15 Q