3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start_datetime = new DateTime('2014-10-27'); $one_month_ago = clone $start_datetime; $one_month_ago = $one_month_ago->modify('- 1 month'); if ($start_datetime < $one_month_ago){ echo ("More than a month ago..."); } else { echo ("Less than a month ago..."); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/auTD4
function name:  (null)
number of ops:  16
compiled vars:  !0 = $start_datetime, !1 = $one_month_ago
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'DateTime'
          1        SEND_VAL_EX                                              '2014-10-27'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    4     4        CLONE                                            ~5      !0
          5        ASSIGN                                                   !1, ~5
    5     6        INIT_METHOD_CALL                                         !1, 'modify'
          7        SEND_VAL_EX                                              '-+1+month'
          8        DO_FCALL                                      0  $7      
          9        ASSIGN                                                   !1, $7
    7    10        IS_SMALLER                                               !0, !1
         11      > JMPZ                                                     ~9, ->14
    8    12    >   ECHO                                                     'More+than+a+month+ago...'
         13      > JMP                                                      ->15
   10    14    >   ECHO                                                     'Less+than+a+month+ago...'
   11    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.63 ms | 1393 KiB | 13 Q