3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Europe/London'); $date = strtotime("November 22, 2017 12:01 AM"); $remaining = $date - time(); $str = date("h:i:s", $remaining); Echo $str; if ($remaining > 0) { $days_remaining = floor($remaining / 86400); $hours_remaining = floor(($remaining % 86400) / 3600); $minutes_remaining = floor(($remaining % 3600) / 60); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 36
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 36
filename:       /in/8psfb
function name:  (null)
number of ops:  37
compiled vars:  !0 = $date, !1 = $remaining, !2 = $str, !3 = $days_remaining, !4 = $hours_remaining, !5 = $minutes_remaining
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'Europe%2FLondon'
          2        DO_ICALL                                                 
    4     3        INIT_FCALL                                               'strtotime'
          4        SEND_VAL                                                 'November+22%2C+2017+12%3A01+AM'
          5        DO_ICALL                                         $7      
          6        ASSIGN                                                   !0, $7
    5     7        INIT_FCALL                                               'time'
          8        DO_ICALL                                         $9      
          9        SUB                                              ~10     !0, $9
         10        ASSIGN                                                   !1, ~10
    7    11        INIT_FCALL                                               'date'
         12        SEND_VAL                                                 'h%3Ai%3As'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                         $12     
         15        ASSIGN                                                   !2, $12
    8    16        ECHO                                                     !2
    9    17        IS_SMALLER                                               0, !1
         18      > JMPZ                                                     ~14, ->36
   10    19    >   INIT_FCALL                                               'floor'
         20        DIV                                              ~15     !1, 86400
         21        SEND_VAL                                                 ~15
         22        DO_ICALL                                         $16     
         23        ASSIGN                                                   !3, $16
   11    24        INIT_FCALL                                               'floor'
         25        MOD                                              ~18     !1, 86400
         26        DIV                                              ~19     ~18, 3600
         27        SEND_VAL                                                 ~19
         28        DO_ICALL                                         $20     
         29        ASSIGN                                                   !4, $20
   12    30        INIT_FCALL                                               'floor'
         31        MOD                                              ~22     !1, 3600
         32        DIV                                              ~23     ~22, 60
         33        SEND_VAL                                                 ~23
         34        DO_ICALL                                         $24     
         35        ASSIGN                                                   !5, $24
   13    36    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.45 ms | 1396 KiB | 23 Q