3v4l.org

run code in 300+ PHP versions simultaneously
<?php $addMode = 'initial'; $noticeOrder = [ "initial" => 0, "pastdue" => 1, "final" => 2 ]; $noticeType = null; if ($noticeOrder[$addMode] < $noticeOrder[$noticeType]) { return "skipped"; } else { $noticeType = $addMode; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2Uqse
function name:  (null)
number of ops:  11
compiled vars:  !0 = $addMode, !1 = $noticeOrder, !2 = $noticeType
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'initial'
    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, ->9
   14     7    > > RETURN                                                   'skipped'
          8*       JMP                                                      ->10
   16     9    >   ASSIGN                                                   !2, !0
   17    10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.76 ms | 1393 KiB | 13 Q