3v4l.org

run code in 300+ PHP versions simultaneously
<?php //date_default_timezone_set('America/Los_Angeles'); @ini_set('date.timezone','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 = 18, Position 2 = 24
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CtZIL
function name:  (null)
number of ops:  26
compiled vars:  !0 = $script_tz, !1 = $bla
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   BEGIN_SILENCE                                    ~2      
          1        INIT_FCALL                                               'ini_set'
          2        SEND_VAL                                                 'date.timezone'
          3        SEND_VAL                                                 'America%2FLos_Angeles'
          4        DO_ICALL                                                 
          5        END_SILENCE                                              ~2
    5     6        INIT_FCALL                                               'date_default_timezone_get'
          7        DO_ICALL                                         $4      
          8        ASSIGN                                                   !0, $4
    7     9        INIT_FCALL                                               'strcmp'
         10        SEND_VAR                                                 !0
         11        INIT_FCALL                                               'ini_get'
         12        SEND_VAL                                                 'date.timezone'
         13        DO_ICALL                                         $6      
         14        ASSIGN                                           ~7      !1, $6
         15        SEND_VAL                                                 ~7
         16        DO_ICALL                                         $8      
         17      > JMPZ                                                     $8, ->24
    8    18    >   ROPE_INIT                                     4  ~10     'Script+timezone+differs+from+ini-set+timezone.+'
         19        ROPE_ADD                                      1  ~10     ~10, !0
         20        ROPE_ADD                                      2  ~10     ~10, '+vs.+'
         21        ROPE_END                                      3  ~9      ~10, !1
         22        ECHO                                                     ~9
         23      > JMP                                                      ->25
   10    24    >   ECHO                                                     'Script+timezone+and+ini-set+timezone+match.'
   12    25    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.4 ms | 1395 KiB | 21 Q