3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(date_default_timezone_get()); var_dump(date_default_timezone_set('UTC')); var_dump(date('Y-m-d H:i:s e', strtotime('now'))); var_dump(date('Y-m-d H:i:s', strtotime('now +2'))); var_dump(date('Y-m-d H:i:s', strtotime('now +2 hours'))); var_dump(date('Y-m-d H:i:s', strtotime('now +2.5 hours'))); var_dump(date('Y-m-d H:i:s', strtotime('now +2,5 hours'))); var_dump(date('Y-m-d H:i:s', strtotime('now +2 5 hours'))); var_dump(date('Y-m-d H:i:s', strtotime('now +7 hours')));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/E9Xr7
function name:  (null)
number of ops:  82
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'date_default_timezone_get'
          2        DO_ICALL                                         $0      
          3        SEND_VAR                                                 $0
          4        DO_ICALL                                                 
    3     5        INIT_FCALL                                               'var_dump'
          6        INIT_FCALL                                               'date_default_timezone_set'
          7        SEND_VAL                                                 'UTC'
          8        DO_ICALL                                         $2      
          9        SEND_VAR                                                 $2
         10        DO_ICALL                                                 
    4    11        INIT_FCALL                                               'var_dump'
         12        INIT_FCALL                                               'date'
         13        SEND_VAL                                                 'Y-m-d+H%3Ai%3As+e'
         14        INIT_FCALL                                               'strtotime'
         15        SEND_VAL                                                 'now'
         16        DO_ICALL                                         $4      
         17        SEND_VAR                                                 $4
         18        DO_ICALL                                         $5      
         19        SEND_VAR                                                 $5
         20        DO_ICALL                                                 
    5    21        INIT_FCALL                                               'var_dump'
         22        INIT_FCALL                                               'date'
         23        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         24        INIT_FCALL                                               'strtotime'
         25        SEND_VAL                                                 'now+%2B2'
         26        DO_ICALL                                         $7      
         27        SEND_VAR                                                 $7
         28        DO_ICALL                                         $8      
         29        SEND_VAR                                                 $8
         30        DO_ICALL                                                 
    6    31        INIT_FCALL                                               'var_dump'
         32        INIT_FCALL                                               'date'
         33        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         34        INIT_FCALL                                               'strtotime'
         35        SEND_VAL                                                 'now+%2B2+hours'
         36        DO_ICALL                                         $10     
         37        SEND_VAR                                                 $10
         38        DO_ICALL                                         $11     
         39        SEND_VAR                                                 $11
         40        DO_ICALL                                                 
    7    41        INIT_FCALL                                               'var_dump'
         42        INIT_FCALL                                               'date'
         43        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         44        INIT_FCALL                                               'strtotime'
         45        SEND_VAL                                                 'now+%2B2.5+hours'
         46        DO_ICALL                                         $13     
         47        SEND_VAR                                                 $13
         48        DO_ICALL                                         $14     
         49        SEND_VAR                                                 $14
         50        DO_ICALL                                                 
    8    51        INIT_FCALL                                               'var_dump'
         52        INIT_FCALL                                               'date'
         53        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         54        INIT_FCALL                                               'strtotime'
         55        SEND_VAL                                                 'now+%2B2%2C5+hours'
         56        DO_ICALL                                         $16     
         57        SEND_VAR                                                 $16
         58        DO_ICALL                                         $17     
         59        SEND_VAR                                                 $17
         60        DO_ICALL                                                 
    9    61        INIT_FCALL                                               'var_dump'
         62        INIT_FCALL                                               'date'
         63        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         64        INIT_FCALL                                               'strtotime'
         65        SEND_VAL                                                 'now+%2B2+5+hours'
         66        DO_ICALL                                         $19     
         67        SEND_VAR                                                 $19
         68        DO_ICALL                                         $20     
         69        SEND_VAR                                                 $20
         70        DO_ICALL                                                 
   10    71        INIT_FCALL                                               'var_dump'
         72        INIT_FCALL                                               'date'
         73        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         74        INIT_FCALL                                               'strtotime'
         75        SEND_VAL                                                 'now+%2B7+hours'
         76        DO_ICALL                                         $22     
         77        SEND_VAR                                                 $22
         78        DO_ICALL                                         $23     
         79        SEND_VAR                                                 $23
         80        DO_ICALL                                                 
         81      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.72 ms | 1400 KiB | 23 Q