3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.8 ms | 1386 KiB | 19 Q