3v4l.org

run code in 300+ PHP versions simultaneously
<?php $now = strtotime('now'); $next_monday = strtotime('Monday'); echo date('d', $next_monday-$now) . "\r\n"; echo date('Y-m-d', $now) . "T00:00:00<br>"; echo date('Y-m-d', $next_monday) . "T00:00:00"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8MuuT
function name:  (null)
number of ops:  28
compiled vars:  !0 = $now, !1 = $next_monday
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'strtotime'
          1        SEND_VAL                                                 'now'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    3     4        INIT_FCALL                                               'strtotime'
          5        SEND_VAL                                                 'Monday'
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !1, $4
    4     8        INIT_FCALL                                               'date'
          9        SEND_VAL                                                 'd'
         10        SUB                                              ~6      !1, !0
         11        SEND_VAL                                                 ~6
         12        DO_ICALL                                         $7      
         13        CONCAT                                           ~8      $7, '%0D%0A'
         14        ECHO                                                     ~8
    5    15        INIT_FCALL                                               'date'
         16        SEND_VAL                                                 'Y-m-d'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                         $9      
         19        CONCAT                                           ~10     $9, 'T00%3A00%3A00%3Cbr%3E'
         20        ECHO                                                     ~10
    6    21        INIT_FCALL                                               'date'
         22        SEND_VAL                                                 'Y-m-d'
         23        SEND_VAR                                                 !1
         24        DO_ICALL                                         $11     
         25        CONCAT                                           ~12     $11, 'T00%3A00%3A00'
         26        ECHO                                                     ~12
    8    27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.77 ms | 1395 KiB | 17 Q