3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = date("Y"); //current year $date_range = range($date-2, $date+2);//get year range //print_r($date_range); //print year range echo implode(',',$date_range);//comma seperated date range
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5Wq8R
function name:  (null)
number of ops:  17
compiled vars:  !0 = $date, !1 = $date_range
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'Y'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    5     4        INIT_FCALL                                               'range'
          5        SUB                                              ~4      !0, 2
          6        SEND_VAL                                                 ~4
          7        ADD                                              ~5      !0, 2
          8        SEND_VAL                                                 ~5
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !1, $6
    9    11        INIT_FCALL                                               'implode'
         12        SEND_VAL                                                 '%2C'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                         $8      
         15        ECHO                                                     $8
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.53 ms | 1000 KiB | 16 Q