3v4l.org

run code in 300+ PHP versions simultaneously
<?php $startDate = date('F d, Y'); $AdExpirationDate = date("F d, Y",strtotime($startDate . '+120 days')); //Calculate the difference between expiration date and today to see if it expires within 30 days $today = date("F d, Y"); $DayDiff = abs(strtotime($AdExpirationDate) - strtotime($today)); /* $DaysToExpiration = floor(($DayDiff - $years * 365*60*60*24 - $months*30*60*60*24)/ (60*60*24)); if ($DaysToExpiration <= 30) { $Expire30 = True; }else{ $Expire30 = False; } */ echo $Daydiff; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nuS8M
function name:  (null)
number of ops:  30
compiled vars:  !0 = $startDate, !1 = $AdExpirationDate, !2 = $today, !3 = $DayDiff, !4 = $Daydiff
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'F+d%2C+Y'
          2        DO_ICALL                                         $5      
          3        ASSIGN                                                   !0, $5
    6     4        INIT_FCALL                                               'date'
          5        SEND_VAL                                                 'F+d%2C+Y'
          6        INIT_FCALL                                               'strtotime'
          7        CONCAT                                           ~7      !0, '%2B120+days'
          8        SEND_VAL                                                 ~7
          9        DO_ICALL                                         $8      
         10        SEND_VAR                                                 $8
         11        DO_ICALL                                         $9      
         12        ASSIGN                                                   !1, $9
    9    13        INIT_FCALL                                               'date'
         14        SEND_VAL                                                 'F+d%2C+Y'
         15        DO_ICALL                                         $11     
         16        ASSIGN                                                   !2, $11
   10    17        INIT_FCALL                                               'abs'
         18        INIT_FCALL                                               'strtotime'
         19        SEND_VAR                                                 !1
         20        DO_ICALL                                         $13     
         21        INIT_FCALL                                               'strtotime'
         22        SEND_VAR                                                 !2
         23        DO_ICALL                                         $14     
         24        SUB                                              ~15     $13, $14
         25        SEND_VAL                                                 ~15
         26        DO_ICALL                                         $16     
         27        ASSIGN                                                   !3, $16
   21    28        ECHO                                                     !4
   23    29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.17 ms | 1395 KiB | 19 Q