3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.56 ms | 1395 KiB | 19 Q