3v4l.org

run code in 300+ PHP versions simultaneously
<?php $expira = date('Y-m-d', strtotime('2013-04-01 + 182 days')); $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/OIhOc
function name:  (null)
number of ops:  28
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        SEND_VAR                                                 !0
         10        DO_ICALL                                         $6      
         11        INIT_FCALL                                               'strtotime'
         12        INIT_FCALL                                               'date'
         13        SEND_VAL                                                 'Y-m-d'
         14        DO_ICALL                                         $7      
         15        SEND_VAR                                                 $7
         16        DO_ICALL                                         $8      
         17        SUB                                              ~9      $6, $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        NOP                                                      
         25        FAST_CONCAT                                      ~14     !2, '+days+left'
         26        ECHO                                                     ~14
    6    27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.96 ms | 1395 KiB | 19 Q