3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); $b['hi'] = 1; if(($a['hello'] ?? $b['hi'] ?? $c['hello']) === 1) { echo '2'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 15
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/NQ38r
function name:  (null)
number of ops:  16
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_R                                      ~9      !2, 'hello'
         10        QM_ASSIGN                                        ~8      ~9
         11        QM_ASSIGN                                        ~6      ~8
         12        IS_IDENTICAL                                             ~6, 1
         13      > JMPZ                                                     ~10, ->15
    5    14    >   ECHO                                                     '2'
    6    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.41 ms | 1394 KiB | 15 Q