3v4l.org

run code in 300+ PHP versions simultaneously
<?php $currentmonth = date('m');//good one $montharray=array('Jan', 'Feb', 'Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov', 'Dec'); $month = 0; for ($int=1; $int<$currentmonth; $int++) { $mth=$montharray[$int-1]; echo $mth; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 8
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 8
Branch analysis from position: 15
Branch analysis from position: 8
filename:       /in/q3R1D
function name:  (null)
number of ops:  16
compiled vars:  !0 = $currentmonth, !1 = $montharray, !2 = $month, !3 = $int, !4 = $mth
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'm'
          2        DO_ICALL                                         $5      
          3        ASSIGN                                                   !0, $5
    3     4        ASSIGN                                                   !1, <array>
    6     5        ASSIGN                                                   !2, 0
    7     6        ASSIGN                                                   !3, 1
          7      > JMP                                                      ->13
    9     8    >   SUB                                              ~10     !3, 1
          9        FETCH_DIM_R                                      ~11     !1, ~10
         10        ASSIGN                                                   !4, ~11
   10    11        ECHO                                                     !4
    7    12        PRE_INC                                                  !3
         13    >   IS_SMALLER                                               !3, !0
         14      > JMPNZ                                                    ~14, ->8
   11    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.31 ms | 1395 KiB | 15 Q