3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.87 ms | 1398 KiB | 17 Q