3v4l.org

run code in 300+ PHP versions simultaneously
<?php $month = array('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'); for($i=0;$i<=11;$i++) { if(date('M') == $month[$i]) { $a = $i + 1; $b = $i + 2; if($a > 11) { $a = 0; $b = 1; } if($b > 11) { $b = 0; } echo '<th>' . $month[$i] . '</th>'; echo '<th>' . $month[$a] . '</th>'; echo '<th>' . $month[$b] . '</th>'; } } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
2 jumps found. (Code = 44) Position 1 = 35, Position 2 = 3
Branch analysis from position: 35
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 32
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 20
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 35, Position 2 = 3
Branch analysis from position: 35
Branch analysis from position: 3
Branch analysis from position: 20
Branch analysis from position: 17
Branch analysis from position: 32
filename:       /in/f9joO
function name:  (null)
number of ops:  36
compiled vars:  !0 = $month, !1 = $i, !2 = $a, !3 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->33
    6     3    >   INIT_FCALL                                               'date'
          4        SEND_VAL                                                 'M'
          5        DO_ICALL                                         $6      
          6        FETCH_DIM_R                                      ~7      !0, !1
          7        IS_EQUAL                                                 $6, ~7
          8      > JMPZ                                                     ~8, ->32
    8     9    >   ADD                                              ~9      !1, 1
         10        ASSIGN                                                   !2, ~9
    9    11        ADD                                              ~11     !1, 2
         12        ASSIGN                                                   !3, ~11
   10    13        IS_SMALLER                                               11, !2
         14      > JMPZ                                                     ~13, ->17
   12    15    >   ASSIGN                                                   !2, 0
   13    16        ASSIGN                                                   !3, 1
   15    17    >   IS_SMALLER                                               11, !3
         18      > JMPZ                                                     ~16, ->20
   17    19    >   ASSIGN                                                   !3, 0
   19    20    >   FETCH_DIM_R                                      ~18     !0, !1
         21        CONCAT                                           ~19     '%3Cth%3E', ~18
         22        CONCAT                                           ~20     ~19, '%3C%2Fth%3E'
         23        ECHO                                                     ~20
   20    24        FETCH_DIM_R                                      ~21     !0, !2
         25        CONCAT                                           ~22     '%3Cth%3E', ~21
         26        CONCAT                                           ~23     ~22, '%3C%2Fth%3E'
         27        ECHO                                                     ~23
   21    28        FETCH_DIM_R                                      ~24     !0, !3
         29        CONCAT                                           ~25     '%3Cth%3E', ~24
         30        CONCAT                                           ~26     ~25, '%3C%2Fth%3E'
         31        ECHO                                                     ~26
    4    32    >   PRE_INC                                                  !1
         33    >   IS_SMALLER_OR_EQUAL                                      !1, 11
         34      > JMPNZ                                                    ~28, ->3
   24    35    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.25 ms | 1400 KiB | 15 Q