3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d1=strtotime( "today"); $d3=strtotime("$d1+2 days"); echo date("l",$d3); $d2=ceil(($d1-strtotime("Today"))/60/60/24/7); echo "There are " . $d2 ." weeks until 4th of July.";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uPRR4
function name:  (null)
number of ops:  31
compiled vars:  !0 = $d1, !1 = $d3, !2 = $d2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'strtotime'
          1        SEND_VAL                                                 'today'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    4     4        INIT_FCALL                                               'strtotime'
          5        NOP                                                      
          6        FAST_CONCAT                                      ~5      !0, '%2B2+days'
          7        SEND_VAL                                                 ~5
          8        DO_ICALL                                         $6      
          9        ASSIGN                                                   !1, $6
    5    10        INIT_FCALL                                               'date'
         11        SEND_VAL                                                 'l'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $8      
         14        ECHO                                                     $8
    6    15        INIT_FCALL                                               'ceil'
         16        INIT_FCALL                                               'strtotime'
         17        SEND_VAL                                                 'Today'
         18        DO_ICALL                                         $9      
         19        SUB                                              ~10     !0, $9
         20        DIV                                              ~11     ~10, 60
         21        DIV                                              ~12     ~11, 60
         22        DIV                                              ~13     ~12, 24
         23        DIV                                              ~14     ~13, 7
         24        SEND_VAL                                                 ~14
         25        DO_ICALL                                         $15     
         26        ASSIGN                                                   !2, $15
    7    27        CONCAT                                           ~17     'There+are+', !2
         28        CONCAT                                           ~18     ~17, '+weeks+until+4th+of+July.'
         29        ECHO                                                     ~18
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
195.09 ms | 1395 KiB | 19 Q