3v4l.org

run code in 300+ PHP versions simultaneously
<?php $addMode = 'pastdue'; $noticeOrder = array( "initial" => 0, "pastdue" => 1, "final" => 2 ); $noticeType = null; if ($noticeOrder[$addMode] < $noticeOrder[$noticeType]) { print_r("skipped"); } else { $noticeType = $addMode; print_r($noticeType); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 11
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NVFcW
function name:  (null)
number of ops:  16
compiled vars:  !0 = $addMode, !1 = $noticeOrder, !2 = $noticeType
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'pastdue'
    5     1        ASSIGN                                                   !1, <array>
   11     2        ASSIGN                                                   !2, null
   13     3        FETCH_DIM_R                                      ~6      !1, !0
          4        FETCH_DIM_R                                      ~7      !1, !2
          5        IS_SMALLER                                               ~6, ~7
          6      > JMPZ                                                     ~8, ->11
   14     7    >   INIT_FCALL                                               'print_r'
          8        SEND_VAL                                                 'skipped'
          9        DO_ICALL                                                 
         10      > JMP                                                      ->15
   16    11    >   ASSIGN                                                   !2, !0
   17    12        INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                                 
   18    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.07 ms | 1394 KiB | 15 Q