3v4l.org

run code in 300+ PHP versions simultaneously
<?php $birthday = strtotime('2014-06-10'); $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/7JDRY
function name:  (null)
number of ops:  17
compiled vars:  !0 = $birthday, !1 = $days
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'strtotime'
          1        SEND_VAL                                                 '2014-06-10'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    3     4        INIT_FCALL                                               'time'
          5        DO_ICALL                                         $4      
          6        SUB                                              ~5      !0, $4
          7        DIV                                              ~6      ~5, 60
          8        DIV                                              ~7      ~6, 60
          9        DIV                                              ~8      ~7, 24
         10        CAST                                          4  ~9      ~8
         11        ASSIGN                                                   !1, ~9
    4    12        ROPE_INIT                                     3  ~12     'There+are+'
         13        ROPE_ADD                                      1  ~12     ~12, !1
         14        ROPE_END                                      2  ~11     ~12, '+days+until+birthday.'
         15        ECHO                                                     ~11
    5    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
264.06 ms | 939 KiB | 19 Q