3v4l.org

run code in 200+ PHP versions simultaneously
<?php //Source: https://bugs.php.net/bug.php?id=67634 $date = \DateTimeImmutable::createFromFormat(\DateTime::ATOM, '2019-11-03T01:00:00-05:00')->setTimezone(new \DateTimeZone('America/New_York')); var_dump($date->format(\DateTimeImmutable::ATOM)); $date->getTimestamp(); var_dump($date->format(\DateTimeImmutable::ATOM));
based on M5Hcu
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uk3fZ
function name:  (null)
number of ops:  26
compiled vars:  !0 = $date
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   4     0  E >   INIT_STATIC_METHOD_CALL                                  'DateTimeImmutable', 'createFromFormat'
         1        SEND_VAL                                                 'Y-m-d%5CTH%3Ai%3AsP'
         2        SEND_VAL                                                 '2019-11-03T01%3A00%3A00-05%3A00'
         3        DO_FCALL                                      0  $1      
         4        INIT_METHOD_CALL                                         $1, 'setTimezone'
         5        NEW                                              $2      :45
         6        SEND_VAL_EX                                              'America%2FNew_York'
         7        DO_FCALL                                      0          
         8        SEND_VAR_NO_REF_EX                                       $2
         9        DO_FCALL                                      0  $4      
        10        ASSIGN                                                   !0, $4
   6    11        INIT_FCALL                                               'var_dump'
        12        INIT_METHOD_CALL                                         !0, 'format'
        13        SEND_VAL_EX                                              'Y-m-d%5CTH%3Ai%3AsP'
        14        DO_FCALL                                      0  $6      
        15        SEND_VAR                                                 $6
        16        DO_ICALL                                                 
   7    17        INIT_METHOD_CALL                                         !0, 'getTimestamp'
        18        DO_FCALL                                      0          
   8    19        INIT_FCALL                                               'var_dump'
        20        INIT_METHOD_CALL                                         !0, 'format'
        21        SEND_VAL_EX                                              'Y-m-d%5CTH%3Ai%3AsP'
        22        DO_FCALL                                      0  $9      
        23        SEND_VAR                                                 $9
        24        DO_ICALL                                                 
        25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0