3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t = date_default_timezone_get(); date_default_timezone_set("UTC"); $date = gmdate('Y-m-d H:i:s', time() - (60*60)); echo $date . "\n"; date_default_timezone_set($t);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KSOqE
function name:  (null)
number of ops:  20
compiled vars:  !0 = $t, !1 = $date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date_default_timezone_get'
          1        DO_ICALL                                         $2      
          2        ASSIGN                                                   !0, $2
    4     3        INIT_FCALL                                               'date_default_timezone_set'
          4        SEND_VAL                                                 'UTC'
          5        DO_ICALL                                                 
    5     6        INIT_FCALL                                               'gmdate'
          7        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
          8        INIT_FCALL                                               'time'
          9        DO_ICALL                                         $5      
         10        SUB                                              ~6      $5, 3600
         11        SEND_VAL                                                 ~6
         12        DO_ICALL                                         $7      
         13        ASSIGN                                                   !1, $7
    6    14        CONCAT                                           ~9      !1, '%0A'
         15        ECHO                                                     ~9
    7    16        INIT_FCALL                                               'date_default_timezone_set'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.95 ms | 1395 KiB | 21 Q