3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.05 ms | 1398 KiB | 17 Q