3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.49 ms | 1395 KiB | 19 Q