3v4l.org

run code in 300+ PHP versions simultaneously
<?php $currentDate = strtotime("01/30/2014 - 00:00:00"); $futureDate = $currentDate+(60*5); echo $formatDate = date("m/d/Y - H:i:s", ($currentDate+(60*5))); echo date( "Y-m-d", strtotime( "01/30/2014 - 00:00:00 +1 month" ) ); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SZViT
function name:  (null)
number of ops:  22
compiled vars:  !0 = $currentDate, !1 = $futureDate, !2 = $formatDate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'strtotime'
          1        SEND_VAL                                                 '01%2F30%2F2014+-+00%3A00%3A00'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    4     4        ADD                                              ~5      !0, 300
          5        ASSIGN                                                   !1, ~5
    5     6        INIT_FCALL                                               'date'
          7        SEND_VAL                                                 'm%2Fd%2FY+-+H%3Ai%3As'
          8        ADD                                              ~7      !0, 300
          9        SEND_VAL                                                 ~7
         10        DO_ICALL                                         $8      
         11        ASSIGN                                           ~9      !2, $8
         12        ECHO                                                     ~9
    6    13        INIT_FCALL                                               'date'
         14        SEND_VAL                                                 'Y-m-d'
         15        INIT_FCALL                                               'strtotime'
         16        SEND_VAL                                                 '01%2F30%2F2014+-+00%3A00%3A00+%2B1+month'
         17        DO_ICALL                                         $10     
         18        SEND_VAR                                                 $10
         19        DO_ICALL                                         $11     
         20        ECHO                                                     $11
    7    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.34 ms | 1395 KiB | 17 Q