3v4l.org

run code in 300+ PHP versions simultaneously
<?php $target_days = mktime(0,0,0,04,10,2014);// modify the birth day 12/31/2013 $today = time(); $diff_days = ($target_days - $today); $days = (int)($diff_days/86400); print "Days till next birthday: $days days!"; ?> - See more at: http://www.w3resource.com/php-exercises/php-date-exercises.php#sthash.xJA52BEw.dpuf
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bbTcV
function name:  (null)
number of ops:  23
compiled vars:  !0 = $target_days, !1 = $today, !2 = $diff_days, !3 = $days
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'mktime'
          1        SEND_VAL                                                 0
          2        SEND_VAL                                                 0
          3        SEND_VAL                                                 0
          4        SEND_VAL                                                 4
          5        SEND_VAL                                                 10
          6        SEND_VAL                                                 2014
          7        DO_ICALL                                         $4      
          8        ASSIGN                                                   !0, $4
    4     9        INIT_FCALL                                               'time'
         10        DO_ICALL                                         $6      
         11        ASSIGN                                                   !1, $6
    5    12        SUB                                              ~8      !0, !1
         13        ASSIGN                                                   !2, ~8
    6    14        DIV                                              ~10     !2, 86400
         15        CAST                                          4  ~11     ~10
         16        ASSIGN                                                   !3, ~11
    7    17        ROPE_INIT                                     3  ~14     'Days+till+next+birthday%3A+'
         18        ROPE_ADD                                      1  ~14     ~14, !3
         19        ROPE_END                                      2  ~13     ~14, '+days%21'
         20        ECHO                                                     ~13
    8    21        ECHO                                                     '++%0A-+See+more+at%3A+http%3A%2F%2Fwww.w3resource.com%2Fphp-exercises%2Fphp-date-exercises.php%23sthash.xJA52BEw.dpuf'
    9    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.09 ms | 1386 KiB | 17 Q