3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.11 ms | 1015 KiB | 17 Q