3v4l.org

run code in 300+ PHP versions simultaneously
<?php $today = new DateTime("now"); $date_end = new DateTime('2016-12-15'); $interval = $today->diff($date_end); if($interval->days < "30"){ echo "yes"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 16
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/Z91JO
function name:  (null)
number of ops:  17
compiled vars:  !0 = $today, !1 = $date_end, !2 = $interval
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $3      'DateTime'
          1        SEND_VAL_EX                                              'now'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $3
    3     4        NEW                                              $6      'DateTime'
          5        SEND_VAL_EX                                              '2016-12-15'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $6
    4     8        INIT_METHOD_CALL                                         !0, 'diff'
          9        SEND_VAR_EX                                              !1
         10        DO_FCALL                                      0  $9      
         11        ASSIGN                                                   !2, $9
    5    12        FETCH_OBJ_R                                      ~11     !2, 'days'
         13        IS_SMALLER                                               ~11, '30'
         14      > JMPZ                                                     ~12, ->16
    6    15    >   ECHO                                                     'yes'
    7    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.77 ms | 1393 KiB | 13 Q