3v4l.org

run code in 500+ PHP versions simultaneously
<?php date_default_timezone_set ('Australia/Sydney'); #date_default_timezone_set ('America/Los_Angeles'); $time_now= strtotime( "02-10-2016 00:30:00"); $end_time = strtotime(date('c',$time_now)." midnight"); $start_time = strtotime(date('c',$time_now)." midnight -1 days"); echo "\nNow: ".date('c',$time_now)."< Start: ".date('c' ,$start_time)."< End: ".date('c' ,$end_time)."<\n\n"; $time_now= strtotime( "03-10-2016 00:30:00"); $end_time = strtotime(date('c',$time_now)." midnight"); $start_time = strtotime(date('c',$time_now)." midnight -1 days"); echo "Now: ".date('c',$time_now)."< Start: ".date('c' ,$start_time)."< End: ".date('c' ,$end_time)."<\n\n"; $time_now= strtotime( "04-10-2016 00:30:00"); $end_time = strtotime(date('c',$time_now)." midnight"); $start_time = strtotime(date('c',$time_now)." midnight -1 days"); echo "Now: ".date('c',$time_now)."< Start: ".date('c' ,$start_time)."< End: ".date('c' ,$end_time)."<\n\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/p8UvW
function name:  (null)
number of ops:  127
compiled vars:  !0 = $time_now, !1 = $end_time, !2 = $start_time
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'date_default_timezone_set'
          1        SEND_VAL                                                     'Australia%2FSydney'
          2        DO_ICALL                                                     
    7     3        INIT_FCALL                                                   'strtotime'
          4        SEND_VAL                                                     '02-10-2016+00%3A30%3A00'
          5        DO_ICALL                                             $4      
          6        ASSIGN                                                       !0, $4
    9     7        INIT_FCALL                                                   'strtotime'
          8        INIT_FCALL                                                   'date'
          9        SEND_VAL                                                     'c'
         10        SEND_VAR                                                     !0
         11        DO_ICALL                                             $6      
         12        CONCAT                                               ~7      $6, '+midnight'
         13        SEND_VAL                                                     ~7
         14        DO_ICALL                                             $8      
         15        ASSIGN                                                       !1, $8
   10    16        INIT_FCALL                                                   'strtotime'
         17        INIT_FCALL                                                   'date'
         18        SEND_VAL                                                     'c'
         19        SEND_VAR                                                     !0
         20        DO_ICALL                                             $10     
         21        CONCAT                                               ~11     $10, '+midnight+-1+days'
         22        SEND_VAL                                                     ~11
         23        DO_ICALL                                             $12     
         24        ASSIGN                                                       !2, $12
   12    25        INIT_FCALL                                                   'date'
         26        SEND_VAL                                                     'c'
         27        SEND_VAR                                                     !0
         28        DO_ICALL                                             $14     
         29        CONCAT                                               ~15     '%0ANow%3A+', $14
         30        CONCAT                                               ~16     ~15, '%3C+Start%3A+'
         31        INIT_FCALL                                                   'date'
         32        SEND_VAL                                                     'c'
         33        SEND_VAR                                                     !2
         34        DO_ICALL                                             $17     
         35        CONCAT                                               ~18     ~16, $17
         36        CONCAT                                               ~19     ~18, '%3C+End%3A+'
         37        INIT_FCALL                                                   'date'
         38        SEND_VAL                                                     'c'
         39        SEND_VAR                                                     !1
         40        DO_ICALL                                             $20     
         41        CONCAT                                               ~21     ~19, $20
         42        CONCAT                                               ~22     ~21, '%3C%0A%0A'
         43        ECHO                                                         ~22
   13    44        INIT_FCALL                                                   'strtotime'
         45        SEND_VAL                                                     '03-10-2016+00%3A30%3A00'
         46        DO_ICALL                                             $23     
         47        ASSIGN                                                       !0, $23
   15    48        INIT_FCALL                                                   'strtotime'
         49        INIT_FCALL                                                   'date'
         50        SEND_VAL                                                     'c'
         51        SEND_VAR                                                     !0
         52        DO_ICALL                                             $25     
         53        CONCAT                                               ~26     $25, '+midnight'
         54        SEND_VAL                                                     ~26
         55        DO_ICALL                                             $27     
         56        ASSIGN                                                       !1, $27
   16    57        INIT_FCALL                                                   'strtotime'
         58        INIT_FCALL                                                   'date'
         59        SEND_VAL                                                     'c'
         60        SEND_VAR                                                     !0
         61        DO_ICALL                                             $29     
         62        CONCAT                                               ~30     $29, '+midnight+-1+days'
         63        SEND_VAL                                                     ~30
         64        DO_ICALL                                             $31     
         65        ASSIGN                                                       !2, $31
   18    66        INIT_FCALL                                                   'date'
         67        SEND_VAL                                                     'c'
         68        SEND_VAR                                                     !0
         69        DO_ICALL                                             $33     
         70        CONCAT                                               ~34     'Now%3A+', $33
         71        CONCAT                                               ~35     ~34, '%3C+Start%3A+'
         72        INIT_FCALL                                                   'date'
         73        SEND_VAL                                                     'c'
         74        SEND_VAR                                                     !2
         75        DO_ICALL                                             $36     
         76        CONCAT                                               ~37     ~35, $36
         77        CONCAT                                               ~38     ~37, '%3C+End%3A+'
         78        INIT_FCALL                                                   'date'
         79        SEND_VAL                                                     'c'
         80        SEND_VAR                                                     !1
         81        DO_ICALL                                             $39     
         82        CONCAT                                               ~40     ~38, $39
         83        CONCAT                                               ~41     ~40, '%3C%0A%0A'
         84        ECHO                                                         ~41
   19    85        INIT_FCALL                                                   'strtotime'
         86        SEND_VAL                                                     '04-10-2016+00%3A30%3A00'
         87        DO_ICALL                                             $42     
         88        ASSIGN                                                       !0, $42
   21    89        INIT_FCALL                                                   'strtotime'
         90        INIT_FCALL                                                   'date'
         91        SEND_VAL                                                     'c'
         92        SEND_VAR                                                     !0
         93        DO_ICALL                                             $44     
         94        CONCAT                                               ~45     $44, '+midnight'
         95        SEND_VAL                                                     ~45
         96        DO_ICALL                                             $46     
         97        ASSIGN                                                       !1, $46
   22    98        INIT_FCALL                                                   'strtotime'
         99        INIT_FCALL                                                   'date'
        100        SEND_VAL                                                     'c'
        101        SEND_VAR                                                     !0
        102        DO_ICALL                                             $48     
        103        CONCAT                                               ~49     $48, '+midnight+-1+days'
        104        SEND_VAL                                                     ~49
        105        DO_ICALL                                             $50     
        106        ASSIGN                                                       !2, $50
   24   107        INIT_FCALL                                                   'date'
        108        SEND_VAL                                                     'c'
        109        SEND_VAR                                                     !0
        110        DO_ICALL                                             $52     
        111        CONCAT                                               ~53     'Now%3A+', $52
        112        CONCAT                                               ~54     ~53, '%3C+Start%3A+'
        113        INIT_FCALL                                                   'date'
        114        SEND_VAL                                                     'c'
        115        SEND_VAR                                                     !2
        116        DO_ICALL                                             $55     
        117        CONCAT                                               ~56     ~54, $55
        118        CONCAT                                               ~57     ~56, '%3C+End%3A+'
        119        INIT_FCALL                                                   'date'
        120        SEND_VAL                                                     'c'
        121        SEND_VAR                                                     !1
        122        DO_ICALL                                             $58     
        123        CONCAT                                               ~59     ~57, $58
        124        CONCAT                                               ~60     ~59, '%3C%0A%0A'
        125        ECHO                                                         ~60
        126      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
161.09 ms | 2077 KiB | 16 Q