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(); $diff_days = ($target_days - $today); $days = (int)($diff_days/86400); print "Days till next birthday: $days days!"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/c7Tp4
function name:  (null)
number of ops:  22
compiled vars:  !0 = $target_days, !1 = $today, !2 = $diff_days, !3 = $days
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                                         $4      
          8        ASSIGN                                                   !0, $4
    3     9        INIT_FCALL                                               'time'
         10        DO_ICALL                                         $6      
         11        ASSIGN                                                   !1, $6
    4    12        SUB                                              ~8      !0, !1
         13        ASSIGN                                                   !2, ~8
    5    14        DIV                                              ~10     !2, 86400
         15        CAST                                          4  ~11     ~10
         16        ASSIGN                                                   !3, ~11
    6    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
    7    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.11 ms | 1395 KiB | 17 Q