3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.27 ms | 1396 KiB | 19 Q