3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.33 ms | 1386 KiB | 19 Q