3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-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 = 12, Position 2 = 13
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/rg7Uk
function name:  (null)
number of ops:  14
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_R                                      ~8      !2, 'hello'
          8        QM_ASSIGN                                        ~7      ~8
          9        QM_ASSIGN                                        ~5      ~7
         10        IS_IDENTICAL                                             ~5, 1
         11      > JMPZ                                                     ~9, ->13
    5    12    >   ECHO                                                     '2'
    6    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
226.44 ms | 1394 KiB | 15 Q