3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new \DateTime(); $date->setTimezone(new \DateTimeZone('UTC')); $test = strtotime($date->format('Y-m-d') . '00:00:00'); $datee = new \DateTime(); $datee->setTimezone(new \DateTimeZone('UTC')); $testt = strtotime($datee->format('Y-m-d') . '23:59:59'); echo date('Y-m-d h:i:s', $test); echo date('Y-m-d h:i:s', $testt);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KHTFf
function name:  (null)
number of ops:  45
compiled vars:  !0 = $date, !1 = $test, !2 = $datee, !3 = $testt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $4      'DateTime'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $4
    4     3        INIT_METHOD_CALL                                         !0, 'setTimezone'
          4        NEW                                              $7      'DateTimeZone'
          5        SEND_VAL_EX                                              'UTC'
          6        DO_FCALL                                      0          
          7        SEND_VAR_NO_REF_EX                                       $7
          8        DO_FCALL                                      0          
    5     9        INIT_FCALL                                               'strtotime'
         10        INIT_METHOD_CALL                                         !0, 'format'
         11        SEND_VAL_EX                                              'Y-m-d'
         12        DO_FCALL                                      0  $10     
         13        CONCAT                                           ~11     $10, '00%3A00%3A00'
         14        SEND_VAL                                                 ~11
         15        DO_ICALL                                         $12     
         16        ASSIGN                                                   !1, $12
    7    17        NEW                                              $14     'DateTime'
         18        DO_FCALL                                      0          
         19        ASSIGN                                                   !2, $14
    8    20        INIT_METHOD_CALL                                         !2, 'setTimezone'
         21        NEW                                              $17     'DateTimeZone'
         22        SEND_VAL_EX                                              'UTC'
         23        DO_FCALL                                      0          
         24        SEND_VAR_NO_REF_EX                                       $17
         25        DO_FCALL                                      0          
    9    26        INIT_FCALL                                               'strtotime'
         27        INIT_METHOD_CALL                                         !2, 'format'
         28        SEND_VAL_EX                                              'Y-m-d'
         29        DO_FCALL                                      0  $20     
         30        CONCAT                                           ~21     $20, '23%3A59%3A59'
         31        SEND_VAL                                                 ~21
         32        DO_ICALL                                         $22     
         33        ASSIGN                                                   !3, $22
   10    34        INIT_FCALL                                               'date'
         35        SEND_VAL                                                 'Y-m-d+h%3Ai%3As'
         36        SEND_VAR                                                 !1
         37        DO_ICALL                                         $24     
         38        ECHO                                                     $24
   11    39        INIT_FCALL                                               'date'
         40        SEND_VAL                                                 'Y-m-d+h%3Ai%3As'
         41        SEND_VAR                                                 !3
         42        DO_ICALL                                         $25     
         43        ECHO                                                     $25
         44      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.56 ms | 1400 KiB | 17 Q