3v4l.org

run code in 300+ PHP versions simultaneously
<?php $now = strtotime('now'); $next_monday = strtotime('Monday'); echo $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/Ug8DC
function name:  (null)
number of ops:  24
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        SUB                                              ~6      !1, !0
          9        CONCAT                                           ~7      ~6, '%0D%0A'
         10        ECHO                                                     ~7
    5    11        INIT_FCALL                                               'date'
         12        SEND_VAL                                                 'Y-m-d'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $8      
         15        CONCAT                                           ~9      $8, 'T00%3A00%3A00%3Cbr%3E'
         16        ECHO                                                     ~9
    6    17        INIT_FCALL                                               'date'
         18        SEND_VAL                                                 'Y-m-d'
         19        SEND_VAR                                                 !1
         20        DO_ICALL                                         $10     
         21        CONCAT                                           ~11     $10, 'T00%3A00%3A00'
         22        ECHO                                                     ~11
    8    23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.7 ms | 1395 KiB | 17 Q