3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t = new DateTime("2015-07-07 14:00:00", new DateTimeZone("Europe/Berlin")); if (date_format($t, 'I') == 1) { echo("SOMMERZEIT"); } else { echo("WINTERZEIT"); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/i4Ye1
function name:  (null)
number of ops:  18
compiled vars:  !0 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'DateTime'
          1        SEND_VAL_EX                                              '2015-07-07+14%3A00%3A00'
          2        NEW                                              $2      'DateTimeZone'
          3        SEND_VAL_EX                                              'Europe%2FBerlin'
          4        DO_FCALL                                      0          
          5        SEND_VAR_NO_REF_EX                                       $2
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !0, $1
    5     8        INIT_FCALL                                               'date_format'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 'I'
         11        DO_ICALL                                         $6      
         12        IS_EQUAL                                                 $6, 1
         13      > JMPZ                                                     ~7, ->16
    6    14    >   ECHO                                                     'SOMMERZEIT'
         15      > JMP                                                      ->17
    8    16    >   ECHO                                                     'WINTERZEIT'
    9    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.71 ms | 1395 KiB | 15 Q