3v4l.org

run code in 300+ PHP versions simultaneously
<?php $confirm_date = strtotime('2015-09-19'); $today_date = strtotime('2015-09-17'); $diff = $confirm_date - $today_date; $daysleft = floor($diff/86400); if($daysleft == 2) { echo 'yes'; echo $daysleft; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/QCOLv
function name:  (null)
number of ops:  20
compiled vars:  !0 = $confirm_date, !1 = $today_date, !2 = $diff, !3 = $daysleft
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'strtotime'
          1        SEND_VAL                                                 '2015-09-19'
          2        DO_ICALL                                         $4      
          3        ASSIGN                                                   !0, $4
    4     4        INIT_FCALL                                               'strtotime'
          5        SEND_VAL                                                 '2015-09-17'
          6        DO_ICALL                                         $6      
          7        ASSIGN                                                   !1, $6
    6     8        SUB                                              ~8      !0, !1
          9        ASSIGN                                                   !2, ~8
    7    10        INIT_FCALL                                               'floor'
         11        DIV                                              ~10     !2, 86400
         12        SEND_VAL                                                 ~10
         13        DO_ICALL                                         $11     
         14        ASSIGN                                                   !3, $11
    8    15        IS_EQUAL                                                 !3, 2
         16      > JMPZ                                                     ~13, ->19
         17    >   ECHO                                                     'yes'
         18        ECHO                                                     !3
         19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.6 ms | 1395 KiB | 17 Q