3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.18 ms | 1394 KiB | 17 Q