3v4l.org

run code in 300+ PHP versions simultaneously
<?php $birthday = mktime(0,0,0,2014,12,31); $days = (int)(($birthday-time())/60/60/24); print "There are $days days until birthday."; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1YlWH
function name:  (null)
number of ops:  22
compiled vars:  !0 = $birthday, !1 = $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                                                 2014
          5        SEND_VAL                                                 12
          6        SEND_VAL                                                 31
          7        DO_ICALL                                         $2      
          8        ASSIGN                                                   !0, $2
    3     9        INIT_FCALL                                               'time'
         10        DO_ICALL                                         $4      
         11        SUB                                              ~5      !0, $4
         12        DIV                                              ~6      ~5, 60
         13        DIV                                              ~7      ~6, 60
         14        DIV                                              ~8      ~7, 24
         15        CAST                                          4  ~9      ~8
         16        ASSIGN                                                   !1, ~9
    4    17        ROPE_INIT                                     3  ~12     'There+are+'
         18        ROPE_ADD                                      1  ~12     ~12, !1
         19        ROPE_END                                      2  ~11     ~12, '+days+until+birthday.'
         20        ECHO                                                     ~11
    5    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.51 ms | 1395 KiB | 17 Q