3v4l.org

run code in 300+ PHP versions simultaneously
<?php $yearRange = array(); // $years1 = range(date('Y'), (date('Y') - 5)); if (date('m')> 10 ) { $years1 = range(date('Y') + 1, (date('Y') - 2)); } else { $years1 = range(date('Y'), (date('Y') - 3)); } foreach ($years1 as $value) { $yearRange[$value] = $value; } print_r($yearRange);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 20
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 32
Branch analysis from position: 32
2 jumps found. (Code = 77) Position 1 = 33, Position 2 = 37
Branch analysis from position: 33
2 jumps found. (Code = 78) Position 1 = 34, Position 2 = 37
Branch analysis from position: 34
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 37
Branch analysis from position: 20
2 jumps found. (Code = 77) Position 1 = 33, Position 2 = 37
Branch analysis from position: 33
Branch analysis from position: 37
filename:       /in/gegoD
function name:  (null)
number of ops:  42
compiled vars:  !0 = $yearRange, !1 = $years1, !2 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'date'
          2        SEND_VAL                                                 'm'
          3        DO_ICALL                                         $4      
          4        IS_SMALLER                                               10, $4
          5      > JMPZ                                                     ~5, ->20
    6     6    >   INIT_FCALL                                               'range'
          7        INIT_FCALL                                               'date'
          8        SEND_VAL                                                 'Y'
          9        DO_ICALL                                         $6      
         10        ADD                                              ~7      $6, 1
         11        SEND_VAL                                                 ~7
         12        INIT_FCALL                                               'date'
         13        SEND_VAL                                                 'Y'
         14        DO_ICALL                                         $8      
         15        SUB                                              ~9      $8, 2
         16        SEND_VAL                                                 ~9
         17        DO_ICALL                                         $10     
         18        ASSIGN                                                   !1, $10
         19      > JMP                                                      ->32
    9    20    >   INIT_FCALL                                               'range'
         21        INIT_FCALL                                               'date'
         22        SEND_VAL                                                 'Y'
         23        DO_ICALL                                         $12     
         24        SEND_VAR                                                 $12
         25        INIT_FCALL                                               'date'
         26        SEND_VAL                                                 'Y'
         27        DO_ICALL                                         $13     
         28        SUB                                              ~14     $13, 3
         29        SEND_VAL                                                 ~14
         30        DO_ICALL                                         $15     
         31        ASSIGN                                                   !1, $15
   11    32    > > FE_RESET_R                                       $17     !1, ->37
         33    > > FE_FETCH_R                                               $17, !2, ->37
   12    34    >   ASSIGN_DIM                                               !0, !2
         35        OP_DATA                                                  !2
   11    36      > JMP                                                      ->33
         37    >   FE_FREE                                                  $17
   15    38        INIT_FCALL                                               'print_r'
         39        SEND_VAR                                                 !0
         40        DO_ICALL                                                 
         41      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.01 ms | 1400 KiB | 19 Q