3v4l.org

run code in 500+ PHP versions simultaneously
<?php $obj = new stdClass; $val = 'foo'; $obj->prop = &$val; var_dump($obj->prop ?? []);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iEDZc
function name:  (null)
number of ops:  13
compiled vars:  !0 = $obj, !1 = $val
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   NEW                                                  $2      'stdClass'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $2
    4     3        ASSIGN                                                       !1, 'foo'
    5     4        ASSIGN_OBJ_REF                                               !0, 'prop'
          5        OP_DATA                                                      !1
    6     6        INIT_FCALL                                                   'var_dump'
          7        FETCH_OBJ_IS                                         ~7      !0, 'prop'
          8        COALESCE                                             ~8      ~7
          9        QM_ASSIGN                                            ~8      <array>
         10        SEND_VAL                                                     ~8
         11        DO_ICALL                                                     
         12      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
162.39 ms | 2182 KiB | 14 Q