3v4l.org

run code in 300+ PHP versions simultaneously
<?php $utc = new DateTimeZone('UTC'); $amla = new DateTimeZone('America/New_York'); $two_past_midnight = new DateTime('2016-03-12 19:00', $utc); if ( date('T',$two_past_midnight) == 'EST' ){ echo 'Easter Standard Time'; } else{ echo "Estern Daylight Time"; } $two_past_midnight->setTimeZone($amla); echo $two_past_midnight->format('T'); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 21
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/X0a43
function name:  (null)
number of ops:  30
compiled vars:  !0 = $utc, !1 = $amla, !2 = $two_past_midnight
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $3      'DateTimeZone'
          1        SEND_VAL_EX                                              'UTC'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $3
    3     4        NEW                                              $6      'DateTimeZone'
          5        SEND_VAL_EX                                              'America%2FNew_York'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $6
    5     8        NEW                                              $9      'DateTime'
          9        SEND_VAL_EX                                              '2016-03-12+19%3A00'
         10        SEND_VAR_EX                                              !0
         11        DO_FCALL                                      0          
         12        ASSIGN                                                   !2, $9
    6    13        INIT_FCALL                                               'date'
         14        SEND_VAL                                                 'T'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                         $12     
         17        IS_EQUAL                                                 $12, 'EST'
         18      > JMPZ                                                     ~13, ->21
    7    19    >   ECHO                                                     'Easter+Standard+Time'
         20      > JMP                                                      ->22
   10    21    >   ECHO                                                     'Estern+Daylight+Time'
   12    22    >   INIT_METHOD_CALL                                         !2, 'setTimeZone'
         23        SEND_VAR_EX                                              !1
         24        DO_FCALL                                      0          
   13    25        INIT_METHOD_CALL                                         !2, 'format'
         26        SEND_VAL_EX                                              'T'
         27        DO_FCALL                                      0  $15     
         28        ECHO                                                     $15
   14    29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.87 ms | 1396 KiB | 15 Q