3v4l.org

run code in 300+ PHP versions simultaneously
<?php $firstActivationDate = new DateTime('2020-06-30T00:00:00'); $paymentWindow = (new DateTime())->modify('+1 day'); if ($paymentWindow < $firstActivationDate) { $paymentWindow = $firstActivationDate; } var_dump($paymentWindow);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/O7DHt
function name:  (null)
number of ops:  17
compiled vars:  !0 = $firstActivationDate, !1 = $paymentWindow
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'DateTime'
          1        SEND_VAL_EX                                              '2020-06-30T00%3A00%3A00'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    4     4        NEW                                              $5      'DateTime'
          5        DO_FCALL                                      0          
          6        INIT_METHOD_CALL                                         $5, 'modify'
          7        SEND_VAL_EX                                              '%2B1+day'
          8        DO_FCALL                                      0  $7      
          9        ASSIGN                                                   !1, $7
    6    10        IS_SMALLER                                               !1, !0
         11      > JMPZ                                                     ~9, ->13
    7    12    >   ASSIGN                                                   !1, !0
   10    13    >   INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.44 ms | 1394 KiB | 15 Q