3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Bar { } class Foo { public Bar $b; } $f = new Foo(); $x = $f->b ?? null;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eCoMW
function name:  (null)
number of ops:  8
compiled vars:  !0 = $f, !1 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $2      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   13     3        FETCH_OBJ_IS                                     ~5      !0, 'b'
          4        COALESCE                                         ~6      ~5
          5        QM_ASSIGN                                        ~6      null
          6        ASSIGN                                                   !1, ~6
   14     7      > RETURN                                                   1

Class Bar: [no user functions]
Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.75 ms | 1421 KiB | 13 Q