3v4l.org

run code in 300+ PHP versions simultaneously
<?php $disconnect = "2015-11-07"; $disco_date = date_create($disconnect); $date_fail = date_add($disco_date, date_interval_create_from_date_string("60 days")); $date_recorded = "2015-11-11 05:47:10"; if($date_fail > $date_recorded) { echo "date recorded = {$date_recorded} \n"; echo "date fail = {$date_fail['date']} \n"; echo "good to go"; } else echo "exception";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 27
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FSVjA
function name:  (null)
number of ops:  29
compiled vars:  !0 = $disconnect, !1 = $disco_date, !2 = $date_fail, !3 = $date_recorded
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '2015-11-07'
    3     1        INIT_FCALL                                               'date_create'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !1, $5
    4     5        INIT_FCALL                                               'date_add'
          6        SEND_VAR                                                 !1
          7        INIT_FCALL                                               'date_interval_create_from_date_string'
          8        SEND_VAL                                                 '60+days'
          9        DO_ICALL                                         $7      
         10        SEND_VAR                                                 $7
         11        DO_ICALL                                         $8      
         12        ASSIGN                                                   !2, $8
    6    13        ASSIGN                                                   !3, '2015-11-11+05%3A47%3A10'
    8    14        IS_SMALLER                                               !3, !2
         15      > JMPZ                                                     ~11, ->27
   10    16    >   ROPE_INIT                                     3  ~13     'date+recorded+%3D+'
         17        ROPE_ADD                                      1  ~13     ~13, !3
         18        ROPE_END                                      2  ~12     ~13, '+%0A'
         19        ECHO                                                     ~12
   11    20        ROPE_INIT                                     3  ~17     'date+fail+%3D+'
         21        FETCH_DIM_R                                      ~15     !2, 'date'
         22        ROPE_ADD                                      1  ~17     ~17, ~15
         23        ROPE_END                                      2  ~16     ~17, '+%0A'
         24        ECHO                                                     ~16
   12    25        ECHO                                                     'good+to+go'
         26      > JMP                                                      ->28
   15    27    >   ECHO                                                     'exception'
         28    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.35 ms | 1396 KiB | 19 Q