3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key = 5; $thisWeekString = date('Y-m-d', strtotime('-'.$key.' days')) . '-' . date('Y-m-d', strtotime('+7 days', date('Y-m-d', strtotime('-'.$key.' days')))); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rHsef
function name:  (null)
number of ops:  31
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        INIT_FCALL                                               'date'
         12        SEND_VAL                                                 'Y-m-d'
         13        INIT_FCALL                                               'strtotime'
         14        SEND_VAL                                                 '%2B7+days'
         15        INIT_FCALL                                               'date'
         16        SEND_VAL                                                 'Y-m-d'
         17        INIT_FCALL                                               'strtotime'
         18        CONCAT                                           ~8      '-', !0
         19        CONCAT                                           ~9      ~8, '+days'
         20        SEND_VAL                                                 ~9
         21        DO_ICALL                                         $10     
         22        SEND_VAR                                                 $10
         23        DO_ICALL                                         $11     
         24        SEND_VAR                                                 $11
         25        DO_ICALL                                         $12     
         26        SEND_VAR                                                 $12
         27        DO_ICALL                                         $13     
         28        CONCAT                                           ~14     ~7, $13
         29        ASSIGN                                                   !1, ~14
    5    30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.73 ms | 1395 KiB | 17 Q