3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('America/Los_Angeles'); $script_tz = date_default_timezone_get(); if (strcmp($script_tz, $bla=ini_get('date.timezone'))){ echo 'Script timezone differs from ini-set timezone. $script_tz vs. $bla'; } else { echo 'Script timezone and ini-set timezone match.'; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EURFs
function name:  (null)
number of ops:  19
compiled vars:  !0 = $script_tz, !1 = $bla
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'America%2FLos_Angeles'
          2        DO_ICALL                                                 
    4     3        INIT_FCALL                                               'date_default_timezone_get'
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !0, $3
    6     6        INIT_FCALL                                               'strcmp'
          7        SEND_VAR                                                 !0
          8        INIT_FCALL                                               'ini_get'
          9        SEND_VAL                                                 'date.timezone'
         10        DO_ICALL                                         $5      
         11        ASSIGN                                           ~6      !1, $5
         12        SEND_VAL                                                 ~6
         13        DO_ICALL                                         $7      
         14      > JMPZ                                                     $7, ->17
    7    15    >   ECHO                                                     'Script+timezone+differs+from+ini-set+timezone.+%24script_tz+vs.+%24bla'
         16      > JMP                                                      ->18
    9    17    >   ECHO                                                     'Script+timezone+and+ini-set+timezone+match.'
   11    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.7 ms | 1395 KiB | 21 Q