3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
142.23 ms | 1402 KiB | 17 Q