3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.73 ms | 1394 KiB | 15 Q