3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $start = new DateTime('2012-10-25 00:00:00', new DateTimeZone('America/New_York')); $start->setTimeZone(new DateTimeZone('UTC')); echo $start->format('Y-m-d H:i:s'), PHP_EOL; $end = new DateTime('2012-10-25 23:59:59', new DateTimeZone('America/New_York')); $end->setTimeZone(new DateTimeZone('UTC')); echo $end->format('Y-m-d H:i:s');
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/lSYaj
function name:  (null)
number of ops:  38
compiled vars:  !0 = $start, !1 = $end
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NEW                                              $2      :-6
         1        SEND_VAL_EX                                              '2012-10-25+00%3A00%3A00'
         2        NEW                                              $3      :-3
         3        SEND_VAL_EX                                              'America%2FNew_York'
         4        DO_FCALL                                      0          
         5        SEND_VAR_NO_REF                               0          $3
         6        DO_FCALL                                      0          
         7        ASSIGN                                                   !0, $2
   4     8        INIT_METHOD_CALL                                         !0, 'setTimeZone'
         9        NEW                                              $7      :2
        10        SEND_VAL_EX                                              'UTC'
        11        DO_FCALL                                      0          
        12        SEND_VAR_NO_REF                               0          $7
        13        DO_FCALL                                      0          
   5    14        INIT_METHOD_CALL                                         !0, 'format'
        15        SEND_VAL_EX                                              'Y-m-d+H%3Ai%3As'
        16        DO_FCALL                                      0  $10     
        17        ECHO                                                     $10
        18        ECHO                                                     '%0A'
   7    19        NEW                                              $11     :9
        20        SEND_VAL_EX                                              '2012-10-25+23%3A59%3A59'
        21        NEW                                              $12     :12
        22        SEND_VAL_EX                                              'America%2FNew_York'
        23        DO_FCALL                                      0          
        24        SEND_VAR_NO_REF                               0          $12
        25        DO_FCALL                                      0          
        26        ASSIGN                                                   !1, $11
   8    27        INIT_METHOD_CALL                                         !1, 'setTimeZone'
        28        NEW                                              $16     :17
        29        SEND_VAL_EX                                              'UTC'
        30        DO_FCALL                                      0          
        31        SEND_VAR_NO_REF                               0          $16
        32        DO_FCALL                                      0          
   9    33        INIT_METHOD_CALL                                         !1, 'format'
        34        SEND_VAL_EX                                              'Y-m-d+H%3Ai%3As'
        35        DO_FCALL                                      0  $19     
        36        ECHO                                                     $19
        37      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0