3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fromDate = new \DateTime('2012-07-01'); $tilDate = new \DateTime('2013-06-30'); $currentDate = new \DateTime('now'); if ($currentDate < $fromDate || $tilDate < $currentDate) { echo 'Message'; } else { echo 'No Message'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/I0rBf
function name:  (null)
number of ops:  21
compiled vars:  !0 = $fromDate, !1 = $tilDate, !2 = $currentDate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   NEW                                              $3      'DateTime'
          1        SEND_VAL_EX                                              '2012-07-01'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $3
    5     4        NEW                                              $6      'DateTime'
          5        SEND_VAL_EX                                              '2013-06-30'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $6
    6     8        NEW                                              $9      'DateTime'
          9        SEND_VAL_EX                                              'now'
         10        DO_FCALL                                      0          
         11        ASSIGN                                                   !2, $9
    8    12        IS_SMALLER                                       ~12     !2, !0
         13      > JMPNZ_EX                                         ~12     ~12, ->16
         14    >   IS_SMALLER                                       ~13     !1, !2
         15        BOOL                                             ~12     ~13
         16    > > JMPZ                                                     ~12, ->19
    9    17    >   ECHO                                                     'Message'
         18      > JMP                                                      ->20
   11    19    >   ECHO                                                     'No+Message'
   12    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.72 ms | 1393 KiB | 13 Q