3v4l.org

run code in 300+ PHP versions simultaneously
<?php $config = new stdClass(); echo $config->a->b->c ?? 'nothing';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IL79K
function name:  (null)
number of ops:  10
compiled vars:  !0 = $config
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    5     3        FETCH_OBJ_IS                                     ~4      !0, 'a'
          4        FETCH_OBJ_IS                                     ~5      ~4, 'b'
          5        FETCH_OBJ_IS                                     ~6      ~5, 'c'
          6        COALESCE                                         ~7      ~6
          7        QM_ASSIGN                                        ~7      'nothing'
          8        ECHO                                                     ~7
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.55 ms | 1396 KiB | 13 Q