3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php date_default_timezone_set("America/Chicago"); ini_set("date.timezone", "America/Los_Angeles"); echo "ddts: " . date_default_timezone_get() . "\n"; echo "ini: " . ini_get("date.timezone") . "\n";
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/7TCZA
function name:  (null)
number of ops:  19
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   INIT_FCALL                                               'date_default_timezone_set'
         1        SEND_VAL                                                 'America%2FChicago'
         2        DO_ICALL                                                 
   4     3        INIT_FCALL                                               'ini_set'
         4        SEND_VAL                                                 'date.timezone'
         5        SEND_VAL                                                 'America%2FLos_Angeles'
         6        DO_ICALL                                                 
   6     7        INIT_FCALL                                               'date_default_timezone_get'
         8        DO_ICALL                                         $2      
         9        CONCAT                                           ~3      'ddts%3A+', $2
        10        CONCAT                                           ~4      ~3, '%0A'
        11        ECHO                                                     ~4
   7    12        INIT_FCALL                                               'ini_get'
        13        SEND_VAL                                                 'date.timezone'
        14        DO_ICALL                                         $5      
        15        CONCAT                                           ~6      'ini%3A+', $5
        16        CONCAT                                           ~7      ~6, '%0A'
        17        ECHO                                                     ~7
        18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0