3v4l.org

run code in 500+ PHP versions simultaneously
<?php var_dump(date_default_timezone_get()); $time1 = time(); var_dump($time1); date_default_timezone_set("America/Los_Angeles"); var_dump(date_default_timezone_get()); $time2 = time(); var_dump($time2); var_dump($time1 === $time2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Cggc3
function name:  (null)
number of ops:  30
compiled vars:  !0 = $time1, !1 = $time2
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                                   'var_dump'
          1        INIT_FCALL                                                   'date_default_timezone_get'
          2        DO_ICALL                                             $2      
          3        SEND_VAR                                                     $2
          4        DO_ICALL                                                     
    4     5        INIT_FCALL                                                   'time'
          6        DO_ICALL                                             $4      
          7        ASSIGN                                                       !0, $4
    5     8        INIT_FCALL                                                   'var_dump'
          9        SEND_VAR                                                     !0
         10        DO_ICALL                                                     
    7    11        INIT_FCALL                                                   'date_default_timezone_set'
         12        SEND_VAL                                                     'America%2FLos_Angeles'
         13        DO_ICALL                                                     
    8    14        INIT_FCALL                                                   'var_dump'
         15        INIT_FCALL                                                   'date_default_timezone_get'
         16        DO_ICALL                                             $8      
         17        SEND_VAR                                                     $8
         18        DO_ICALL                                                     
   10    19        INIT_FCALL                                                   'time'
         20        DO_ICALL                                             $10     
         21        ASSIGN                                                       !1, $10
   11    22        INIT_FCALL                                                   'var_dump'
         23        SEND_VAR                                                     !1
         24        DO_ICALL                                                     
   13    25        INIT_FCALL                                                   'var_dump'
         26        IS_IDENTICAL                                         ~13     !0, !1
         27        SEND_VAL                                                     ~13
         28        DO_ICALL                                                     
         29      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.3 ms | 1803 KiB | 17 Q