3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo date_default_timezone_get() . ' : ' . date("m/d/Y h:i:s") . PHP_EOL; date_default_timezone_set('EST'); echo date_default_timezone_get() . ' : ' . date("m/d/Y h:i:s") . PHP_EOL; date_default_timezone_set('America/New_York'); echo date_default_timezone_get() . ' : ' . date("m/d/Y h:i:s") . PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pdeQu
function name:  (null)
number of ops:  34
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date_default_timezone_get'
          1        DO_ICALL                                         $0      
          2        CONCAT                                           ~1      $0, '+%3A+'
          3        INIT_FCALL                                               'date'
          4        SEND_VAL                                                 'm%2Fd%2FY+h%3Ai%3As'
          5        DO_ICALL                                         $2      
          6        CONCAT                                           ~3      ~1, $2
          7        CONCAT                                           ~4      ~3, '%0A'
          8        ECHO                                                     ~4
    5     9        INIT_FCALL                                               'date_default_timezone_set'
         10        SEND_VAL                                                 'EST'
         11        DO_ICALL                                                 
    7    12        INIT_FCALL                                               'date_default_timezone_get'
         13        DO_ICALL                                         $6      
         14        CONCAT                                           ~7      $6, '+%3A+'
         15        INIT_FCALL                                               'date'
         16        SEND_VAL                                                 'm%2Fd%2FY+h%3Ai%3As'
         17        DO_ICALL                                         $8      
         18        CONCAT                                           ~9      ~7, $8
         19        CONCAT                                           ~10     ~9, '%0A'
         20        ECHO                                                     ~10
    9    21        INIT_FCALL                                               'date_default_timezone_set'
         22        SEND_VAL                                                 'America%2FNew_York'
         23        DO_ICALL                                                 
   11    24        INIT_FCALL                                               'date_default_timezone_get'
         25        DO_ICALL                                         $12     
         26        CONCAT                                           ~13     $12, '+%3A+'
         27        INIT_FCALL                                               'date'
         28        SEND_VAL                                                 'm%2Fd%2FY+h%3Ai%3As'
         29        DO_ICALL                                         $14     
         30        CONCAT                                           ~15     ~13, $14
         31        CONCAT                                           ~16     ~15, '%0A'
         32        ECHO                                                     ~16
         33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
130.03 ms | 1401 KiB | 19 Q