3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.38 ms | 1394 KiB | 13 Q