3v4l.org

run code in 300+ PHP versions simultaneously
<?php $today = time(); $two_years = strtotime("-2 years", $today); $niceyear = date('Y-m-d', $two_years); echo $two_years;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/K0Q9E
function name:  (null)
number of ops:  15
compiled vars:  !0 = $today, !1 = $two_years, !2 = $niceyear
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'time'
          1        DO_ICALL                                         $3      
          2        ASSIGN                                                   !0, $3
    4     3        INIT_FCALL                                               'strtotime'
          4        SEND_VAL                                                 '-2+years'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !1, $5
    5     8        INIT_FCALL                                               'date'
          9        SEND_VAL                                                 'Y-m-d'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $7      
         12        ASSIGN                                                   !2, $7
    6    13        ECHO                                                     !1
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.15 ms | 1394 KiB | 19 Q