3v4l.org

run code in 300+ PHP versions simultaneously
<?php $target_days = mktime(0,0,0,12,31,2013);// modify the birth day 12/31/2013 $today = time(); print "$today"; /*$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/6V4Ba
function name:  (null)
number of ops:  16
compiled vars:  !0 = $target_days, !1 = $today
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'mktime'
          1        SEND_VAL                                                 0
          2        SEND_VAL                                                 0
          3        SEND_VAL                                                 0
          4        SEND_VAL                                                 12
          5        SEND_VAL                                                 31
          6        SEND_VAL                                                 2013
          7        DO_ICALL                                         $2      
          8        ASSIGN                                                   !0, $2
    3     9        INIT_FCALL                                               'time'
         10        DO_ICALL                                         $4      
         11        ASSIGN                                                   !1, $4
    4    12        CAST                                          6  ~6      !1
         13        ECHO                                                     ~6
   10    14        ECHO                                                     '++%0A-+See+more+at%3A+http%3A%2F%2Fwww.w3resource.com%2Fphp-exercises%2Fphp-date-exercises.php%23sthash.xJA52BEw.dpuf'
   11    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.23 ms | 1394 KiB | 17 Q