3v4l.org

run code in 300+ PHP versions simultaneously
<?php $year = date("Y"); $yearDoubleBack = date("Y", strtotime($year . " - 2 year")); $YearDoubleAhead = date("Y", strtotime($year . " + 2 year")); echo '$yearDoubleBack => ' . $yearDoubleBack; echo PHP_EOL; echo '$YearDoubleAhead => ' . $YearDoubleAhead;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/H4bP2
function name:  (null)
number of ops:  28
compiled vars:  !0 = $year, !1 = $yearDoubleBack, !2 = $YearDoubleAhead
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'Y'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    4     4        INIT_FCALL                                               'date'
          5        SEND_VAL                                                 'Y'
          6        INIT_FCALL                                               'strtotime'
          7        CONCAT                                           ~5      !0, '+-+2+year'
          8        SEND_VAL                                                 ~5
          9        DO_ICALL                                         $6      
         10        SEND_VAR                                                 $6
         11        DO_ICALL                                         $7      
         12        ASSIGN                                                   !1, $7
    5    13        INIT_FCALL                                               'date'
         14        SEND_VAL                                                 'Y'
         15        INIT_FCALL                                               'strtotime'
         16        CONCAT                                           ~9      !0, '+%2B+2+year'
         17        SEND_VAL                                                 ~9
         18        DO_ICALL                                         $10     
         19        SEND_VAR                                                 $10
         20        DO_ICALL                                         $11     
         21        ASSIGN                                                   !2, $11
    7    22        CONCAT                                           ~13     '%24yearDoubleBack+%3D%3E+', !1
         23        ECHO                                                     ~13
    8    24        ECHO                                                     '%0A'
    9    25        CONCAT                                           ~14     '%24YearDoubleAhead+%3D%3E+', !2
         26        ECHO                                                     ~14
   10    27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
259.89 ms | 1003 KiB | 15 Q