3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Europe/Berlin'); echo date('G'); if (date('G') < 12 ){ echo 'early'; }else{ echo 'late'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XsSFD
function name:  (null)
number of ops:  16
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'Europe%2FBerlin'
          2        DO_ICALL                                                 
    3     3        INIT_FCALL                                               'date'
          4        SEND_VAL                                                 'G'
          5        DO_ICALL                                         $1      
          6        ECHO                                                     $1
    4     7        INIT_FCALL                                               'date'
          8        SEND_VAL                                                 'G'
          9        DO_ICALL                                         $2      
         10        IS_SMALLER                                               $2, 12
         11      > JMPZ                                                     ~3, ->14
    5    12    >   ECHO                                                     'early'
         13      > JMP                                                      ->15
    7    14    >   ECHO                                                     'late'
    8    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.7 ms | 1394 KiB | 17 Q