3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(); $arr[1] = "Enero"; $arr[2] = "Febrero"; $arr[3] = "Marzo"; $arr[4] = "Abril"; $arr[5] = "Mayo"; $arr[6] = "Junio"; $arr[7] = "Julio"; $arr[8] = "Agosto"; $arr[9] = "Septiembre"; $arr[10] = "Octubre"; $arr[11] = "Noviembre"; $arr[12] = "Diciembre"; $months = $arr; $j = date('n'); $y = date('Y'); for ($i = 12; $i >= 1; $i--) { if ($j == 0) { $j = 12; $y--; } $k = $j; if ($k < 10) $k = '0' . $k; $meses[$y . '-' . $k] = strtoupper($months[$j]) . ' ' . $y; $j--; } var_dump($meses);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 57
Branch analysis from position: 57
2 jumps found. (Code = 44) Position 1 = 59, Position 2 = 36
Branch analysis from position: 59
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 36
2 jumps found. (Code = 43) Position 1 = 38, Position 2 = 40
Branch analysis from position: 38
2 jumps found. (Code = 43) Position 1 = 43, Position 2 = 45
Branch analysis from position: 43
2 jumps found. (Code = 44) Position 1 = 59, Position 2 = 36
Branch analysis from position: 59
Branch analysis from position: 36
Branch analysis from position: 45
Branch analysis from position: 40
filename:       /in/GJ8o5
function name:  (null)
number of ops:  63
compiled vars:  !0 = $arr, !1 = $months, !2 = $j, !3 = $y, !4 = $i, !5 = $k, !6 = $meses
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN_DIM                                               !0, 1
          2        OP_DATA                                                  'Enero'
    4     3        ASSIGN_DIM                                               !0, 2
          4        OP_DATA                                                  'Febrero'
    5     5        ASSIGN_DIM                                               !0, 3
          6        OP_DATA                                                  'Marzo'
    6     7        ASSIGN_DIM                                               !0, 4
          8        OP_DATA                                                  'Abril'
    7     9        ASSIGN_DIM                                               !0, 5
         10        OP_DATA                                                  'Mayo'
    8    11        ASSIGN_DIM                                               !0, 6
         12        OP_DATA                                                  'Junio'
    9    13        ASSIGN_DIM                                               !0, 7
         14        OP_DATA                                                  'Julio'
   10    15        ASSIGN_DIM                                               !0, 8
         16        OP_DATA                                                  'Agosto'
   11    17        ASSIGN_DIM                                               !0, 9
         18        OP_DATA                                                  'Septiembre'
   12    19        ASSIGN_DIM                                               !0, 10
         20        OP_DATA                                                  'Octubre'
   13    21        ASSIGN_DIM                                               !0, 11
         22        OP_DATA                                                  'Noviembre'
   14    23        ASSIGN_DIM                                               !0, 12
         24        OP_DATA                                                  'Diciembre'
   15    25        ASSIGN                                                   !1, !0
   16    26        INIT_FCALL                                               'date'
         27        SEND_VAL                                                 'n'
         28        DO_ICALL                                         $21     
         29        ASSIGN                                                   !2, $21
   17    30        INIT_FCALL                                               'date'
         31        SEND_VAL                                                 'Y'
         32        DO_ICALL                                         $23     
         33        ASSIGN                                                   !3, $23
   18    34        ASSIGN                                                   !4, 12
         35      > JMP                                                      ->57
   19    36    >   IS_EQUAL                                                 !2, 0
         37      > JMPZ                                                     ~26, ->40
   20    38    >   ASSIGN                                                   !2, 12
   21    39        PRE_DEC                                                  !3
   23    40    >   ASSIGN                                                   !5, !2
   24    41        IS_SMALLER                                               !5, 10
         42      > JMPZ                                                     ~30, ->45
   25    43    >   CONCAT                                           ~31     '0', !5
         44        ASSIGN                                                   !5, ~31
   26    45    >   CONCAT                                           ~33     !3, '-'
         46        CONCAT                                           ~34     ~33, !5
         47        INIT_FCALL                                               'strtoupper'
         48        FETCH_DIM_R                                      ~36     !1, !2
         49        SEND_VAL                                                 ~36
         50        DO_ICALL                                         $37     
         51        CONCAT                                           ~38     $37, '+'
         52        CONCAT                                           ~39     ~38, !3
         53        ASSIGN_DIM                                               !6, ~34
         54        OP_DATA                                                  ~39
   27    55        PRE_DEC                                                  !2
   18    56        PRE_DEC                                                  !4
         57    >   IS_SMALLER_OR_EQUAL                                      1, !4
         58      > JMPNZ                                                    ~42, ->36
   29    59    >   INIT_FCALL                                               'var_dump'
         60        SEND_VAR                                                 !6
         61        DO_ICALL                                                 
         62      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.76 ms | 1400 KiB | 19 Q