3v4l.org

run code in 500+ PHP versions simultaneously
<?php $a = null; $a->foo->bar->baz; $a = 42; $a->foo->bar->baz;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cYocM
function name:  (null)
number of ops:  11
compiled vars:  !0 = $a
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, null
    4     1        FETCH_OBJ_R                                          ~2      !0, 'foo'
          2        FETCH_OBJ_R                                          ~3      ~2, 'bar'
          3        FETCH_OBJ_R                                          ~4      ~3, 'baz'
          4        FREE                                                         ~4
    6     5        ASSIGN                                                       !0, 42
    7     6        FETCH_OBJ_R                                          ~6      !0, 'foo'
          7        FETCH_OBJ_R                                          ~7      ~6, 'bar'
          8        FETCH_OBJ_R                                          ~8      ~7, 'baz'
          9        FREE                                                         ~8
         10      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
168.47 ms | 2945 KiB | 13 Q