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 = "2016-11-11 05:47:10"; var_dump($date_fail); if($date_fail['date'] > $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 = 20, Position 2 = 31
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 32
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2dLEv
function name:  (null)
number of ops:  33
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, '2016-11-11+05%3A47%3A10'
    7    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                                 
    8    17        FETCH_DIM_R                                      ~12     !2, 'date'
         18        IS_SMALLER                                               !3, ~12
         19      > JMPZ                                                     ~13, ->31
   10    20    >   ROPE_INIT                                     3  ~15     'date+recorded+%3D+'
         21        ROPE_ADD                                      1  ~15     ~15, !3
         22        ROPE_END                                      2  ~14     ~15, '+%0A'
         23        ECHO                                                     ~14
   11    24        ROPE_INIT                                     3  ~19     'date+fail+%3D+'
         25        FETCH_DIM_R                                      ~17     !2, 'date'
         26        ROPE_ADD                                      1  ~19     ~19, ~17
         27        ROPE_END                                      2  ~18     ~19, '+%0A'
         28        ECHO                                                     ~18
   12    29        ECHO                                                     'good+to+go'
         30      > JMP                                                      ->32
   15    31    >   ECHO                                                     'exception'
         32    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.79 ms | 1396 KiB | 21 Q