3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); $b['hi'] = 1; if(($a['hello'] ?? $b['hi'] ?? $c['hello'] ?? 1) === 1) { echo '2'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 17
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/TIb8u
function name:  (null)
number of ops:  18
compiled vars:  !0 = $b, !1 = $a, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 -1
          2        DO_ICALL                                                 
    3     3        ASSIGN_DIM                                               !0, 'hi'
          4        OP_DATA                                                  1
    4     5        FETCH_DIM_IS                                     ~5      !1, 'hello'
          6        COALESCE                                         ~6      ~5
          7        FETCH_DIM_IS                                     ~7      !0, 'hi'
          8        COALESCE                                         ~8      ~7
          9        FETCH_DIM_IS                                     ~9      !2, 'hello'
         10        COALESCE                                         ~10     ~9
         11        QM_ASSIGN                                        ~10     1
         12        QM_ASSIGN                                        ~8      ~10
         13        QM_ASSIGN                                        ~6      ~8
         14        IS_IDENTICAL                                             ~6, 1
         15      > JMPZ                                                     ~11, ->17
    5    16    >   ECHO                                                     '2'
    6    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.18 ms | 1394 KiB | 15 Q