3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = $foo->bar->baz->qux ?? null; var_dump($value); $value = $foo->bar->baz->qux; var_dump($value);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LZejg
function name:  (null)
number of ops:  17
compiled vars:  !0 = $value, !1 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_OBJ_IS                                     ~2      !1, 'bar'
          1        FETCH_OBJ_IS                                     ~3      ~2, 'baz'
          2        FETCH_OBJ_IS                                     ~4      ~3, 'qux'
          3        COALESCE                                         ~5      ~4
          4        QM_ASSIGN                                        ~5      null
          5        ASSIGN                                                   !0, ~5
    5     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
    7     9        FETCH_OBJ_R                                      ~8      !1, 'bar'
         10        FETCH_OBJ_R                                      ~9      ~8, 'baz'
         11        FETCH_OBJ_R                                      ~10     ~9, 'qux'
         12        ASSIGN                                                   !0, ~10
    9    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.48 ms | 1001 KiB | 14 Q