3v4l.org

run code in 300+ PHP versions simultaneously
<?php $now = strtotime('6/17/2016 20:10 CEST'); echo date("m/d/y", strtotime("+1.5 years", $now)), PHP_EOL; echo date("m/d/y", strtotime("+1.0 years", $now));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qb1jp
function name:  (null)
number of ops:  24
compiled vars:  !0 = $now
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'strtotime'
          1        SEND_VAL                                                 '6%2F17%2F2016+20%3A10+CEST'
          2        DO_ICALL                                         $1      
          3        ASSIGN                                                   !0, $1
    4     4        INIT_FCALL                                               'date'
          5        SEND_VAL                                                 'm%2Fd%2Fy'
          6        INIT_FCALL                                               'strtotime'
          7        SEND_VAL                                                 '%2B1.5+years'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $3      
         10        SEND_VAR                                                 $3
         11        DO_ICALL                                         $4      
         12        ECHO                                                     $4
         13        ECHO                                                     '%0A'
    5    14        INIT_FCALL                                               'date'
         15        SEND_VAL                                                 'm%2Fd%2Fy'
         16        INIT_FCALL                                               'strtotime'
         17        SEND_VAL                                                 '%2B1.0+years'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                         $5      
         20        SEND_VAR                                                 $5
         21        DO_ICALL                                         $6      
         22        ECHO                                                     $6
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.18 ms | 942 KiB | 18 Q