3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new \DateTime(); $date->setTimezone(new \DateTimeZone('UTC')); $test = strtotime('03-09-2014 00:00:00'); $datee = new \DateTime(); $datee->setTimezone(new \DateTimeZone('UTC')); $testt = strtotime($datee->format('Y-m-d') . '23:59:59'); echo $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/qLpOC
function name:  (null)
number of ops:  37
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        SEND_VAL                                                 '03-09-2014+00%3A00%3A00'
         11        DO_ICALL                                         $10     
         12        ASSIGN                                                   !1, $10
    7    13        NEW                                              $12     'DateTime'
         14        DO_FCALL                                      0          
         15        ASSIGN                                                   !2, $12
    8    16        INIT_METHOD_CALL                                         !2, 'setTimezone'
         17        NEW                                              $15     'DateTimeZone'
         18        SEND_VAL_EX                                              'UTC'
         19        DO_FCALL                                      0          
         20        SEND_VAR_NO_REF_EX                                       $15
         21        DO_FCALL                                      0          
    9    22        INIT_FCALL                                               'strtotime'
         23        INIT_METHOD_CALL                                         !2, 'format'
         24        SEND_VAL_EX                                              'Y-m-d'
         25        DO_FCALL                                      0  $18     
         26        CONCAT                                           ~19     $18, '23%3A59%3A59'
         27        SEND_VAL                                                 ~19
         28        DO_ICALL                                         $20     
         29        ASSIGN                                                   !3, $20
   10    30        ECHO                                                     !1
   11    31        INIT_FCALL                                               'date'
         32        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         33        SEND_VAR                                                 !3
         34        DO_ICALL                                         $22     
         35        ECHO                                                     $22
         36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.85 ms | 1396 KiB | 17 Q