3v4l.org

run code in 300+ PHP versions simultaneously
<?php $expira = date('Y-m-d', strtotime('2013-04-01 + 182 days')); echo strtotime(date('Y-m-d')). '<' ; $diff = strtotime($expira) - strtotime(date('Y-m-d')); $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/HvoTl
function name:  (null)
number of ops:  36
compiled vars:  !0 = $expira, !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                                                 '2013-04-01+%2B+182+days'
          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        CONCAT                                           ~8      $7, '%3C'
         15        ECHO                                                     ~8
    4    16        INIT_FCALL                                               'strtotime'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                         $9      
         19        INIT_FCALL                                               'strtotime'
         20        INIT_FCALL                                               'date'
         21        SEND_VAL                                                 'Y-m-d'
         22        DO_ICALL                                         $10     
         23        SEND_VAR                                                 $10
         24        DO_ICALL                                         $11     
         25        SUB                                              ~12     $9, $11
         26        ASSIGN                                                   !1, ~12
    6    27        INIT_FCALL                                               'floor'
         28        DIV                                              ~14     !1, 86400
         29        SEND_VAL                                                 ~14
         30        DO_ICALL                                         $15     
         31        ASSIGN                                                   !2, $15
    7    32        NOP                                                      
         33        FAST_CONCAT                                      ~17     !2, '+days+left'
         34        ECHO                                                     ~17
    8    35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.6 ms | 1396 KiB | 19 Q