3v4l.org

run code in 300+ PHP versions simultaneously
<?php $today = date('m/d/Y'); $today = strtotime($today); $finish = get_field('todate'); $finish = strtotime($finish); //difference $diff = $finish - $today; $daysleft=floor($diff/(60*60*24)); echo "$daysleft days left"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iJgUj
function name:  (null)
number of ops:  27
compiled vars:  !0 = $today, !1 = $finish, !2 = $diff, !3 = $daysleft
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'm%2Fd%2FY'
          2        DO_ICALL                                         $4      
          3        ASSIGN                                                   !0, $4
    3     4        INIT_FCALL                                               'strtotime'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $6      
          7        ASSIGN                                                   !0, $6
    4     8        INIT_FCALL_BY_NAME                                       'get_field'
          9        SEND_VAL_EX                                              'todate'
         10        DO_FCALL                                      0  $8      
         11        ASSIGN                                                   !1, $8
    5    12        INIT_FCALL                                               'strtotime'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                         $10     
         15        ASSIGN                                                   !1, $10
    7    16        SUB                                              ~12     !1, !0
         17        ASSIGN                                                   !2, ~12
    9    18        INIT_FCALL                                               'floor'
         19        DIV                                              ~14     !2, 86400
         20        SEND_VAL                                                 ~14
         21        DO_ICALL                                         $15     
         22        ASSIGN                                                   !3, $15
   10    23        NOP                                                      
         24        FAST_CONCAT                                      ~17     !3, '+days+left'
         25        ECHO                                                     ~17
   11    26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.51 ms | 1400 KiB | 19 Q