3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('America/Los_Angeles'); echo date('Y-m-d H:i:s', 0) . PHP_EOL; date_default_timezone_set('UTC'); echo date('Y-m-d H:i:s', 0);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8PGQL
function name:  (null)
number of ops:  18
compiled vars:  none
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                                                 
    3     3        INIT_FCALL                                               'date'
          4        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
          5        SEND_VAL                                                 0
          6        DO_ICALL                                         $1      
          7        CONCAT                                           ~2      $1, '%0A'
          8        ECHO                                                     ~2
    5     9        INIT_FCALL                                               'date_default_timezone_set'
         10        SEND_VAL                                                 'UTC'
         11        DO_ICALL                                                 
    6    12        INIT_FCALL                                               'date'
         13        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         14        SEND_VAL                                                 0
         15        DO_ICALL                                         $4      
         16        ECHO                                                     $4
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
286.51 ms | 1010 KiB | 15 Q