3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t = "2014-04-05T19:00:00"; $a = \DateTime::createFromFormat('Y-m-d\TH:i:s', $t, new \DateTimeZone("America/New_York")); $a->setTimezone(new \DateTimeZone("America/New_York")); var_dump($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0hQXA
function name:  (null)
number of ops:  20
compiled vars:  !0 = $t, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '2014-04-05T19%3A00%3A00'
    4     1        INIT_STATIC_METHOD_CALL                                  'DateTime', 'createFromFormat'
          2        SEND_VAL                                                 'Y-m-d%5CTH%3Ai%3As'
          3        SEND_VAR                                                 !0
          4        NEW                                              $3      'DateTimeZone'
          5        SEND_VAL_EX                                              'America%2FNew_York'
          6        DO_FCALL                                      0          
          7        SEND_VAR                                                 $3
          8        DO_FCALL                                      0  $5      
          9        ASSIGN                                                   !1, $5
    5    10        INIT_METHOD_CALL                                         !1, 'setTimezone'
         11        NEW                                              $7      'DateTimeZone'
         12        SEND_VAL_EX                                              'America%2FNew_York'
         13        DO_FCALL                                      0          
         14        SEND_VAR_NO_REF_EX                                       $7
         15        DO_FCALL                                      0          
    6    16        INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.77 ms | 1395 KiB | 15 Q