3v4l.org

run code in 300+ PHP versions simultaneously
<?php // in examples below, this script was run at 30.10.2021 echo date("Y-m-d H:i:s\n", strtotime("+1.5 year", time())); echo date("Y-m-d H:i:s\n"); echo date("Y-m-d H:i:s\n", strtotime("-1.5 year", time())); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gMsML
function name:  (null)
number of ops:  27
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'Y-m-d+H%3Ai%3As%0A'
          2        INIT_FCALL                                               'strtotime'
          3        SEND_VAL                                                 '%2B1.5+year'
          4        INIT_FCALL                                               'time'
          5        DO_ICALL                                         $0      
          6        SEND_VAR                                                 $0
          7        DO_ICALL                                         $1      
          8        SEND_VAR                                                 $1
          9        DO_ICALL                                         $2      
         10        ECHO                                                     $2
    6    11        INIT_FCALL                                               'date'
         12        SEND_VAL                                                 'Y-m-d+H%3Ai%3As%0A'
         13        DO_ICALL                                         $3      
         14        ECHO                                                     $3
    7    15        INIT_FCALL                                               'date'
         16        SEND_VAL                                                 'Y-m-d+H%3Ai%3As%0A'
         17        INIT_FCALL                                               'strtotime'
         18        SEND_VAL                                                 '-1.5+year'
         19        INIT_FCALL                                               'time'
         20        DO_ICALL                                         $4      
         21        SEND_VAR                                                 $4
         22        DO_ICALL                                         $5      
         23        SEND_VAR                                                 $5
         24        DO_ICALL                                         $6      
         25        ECHO                                                     $6
    9    26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.65 ms | 1000 KiB | 16 Q