3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.08 ms | 1395 KiB | 17 Q