3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
200.86 ms | 1393 KiB | 13 Q