3v4l.org

run code in 500+ PHP versions simultaneously
<?php $months = array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'); $i = $current_month = 5; do { echo $months[$i] . "\n"; $i = ($i + 1) % 12; } while ($i != $current_month);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 3
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
filename:       /in/uBcM3
function name:  (null)
number of ops:  12
compiled vars:  !0 = $months, !1 = $i, !2 = $current_month
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, <array>
    3     1        ASSIGN                                               ~4      !2, 5
          2        ASSIGN                                                       !1, ~4
    5     3    >   FETCH_DIM_R                                          ~6      !0, !1
          4        CONCAT                                               ~7      ~6, '%0A'
          5        ECHO                                                         ~7
    6     6        ADD                                                  ~8      !1, 1
          7        MOD                                                  ~9      ~8, 12
          8        ASSIGN                                                       !1, ~9
    7     9        IS_NOT_EQUAL                                                 !1, !2
         10      > JMPNZ                                                        ~11, ->3
         11    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
154.4 ms | 2286 KiB | 13 Q