3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.76 ms | 1386 KiB | 19 Q