3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(date_default_timezone_get()); var_dump(date('Y-m-d H:i:s', 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.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/4EuL8
function name:  (null)
number of ops:  66
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'
          7        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
          8        INIT_FCALL                                               'strtotime'
          9        SEND_VAL                                                 'now'
         10        DO_ICALL                                         $2      
         11        SEND_VAR                                                 $2
         12        DO_ICALL                                         $3      
         13        SEND_VAR                                                 $3
         14        DO_ICALL                                                 
    4    15        INIT_FCALL                                               'var_dump'
         16        INIT_FCALL                                               'date'
         17        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         18        INIT_FCALL                                               'strtotime'
         19        SEND_VAL                                                 'now+%2B2'
         20        DO_ICALL                                         $5      
         21        SEND_VAR                                                 $5
         22        DO_ICALL                                         $6      
         23        SEND_VAR                                                 $6
         24        DO_ICALL                                                 
    5    25        INIT_FCALL                                               'var_dump'
         26        INIT_FCALL                                               'date'
         27        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         28        INIT_FCALL                                               'strtotime'
         29        SEND_VAL                                                 'now+%2B2.5+hours'
         30        DO_ICALL                                         $8      
         31        SEND_VAR                                                 $8
         32        DO_ICALL                                         $9      
         33        SEND_VAR                                                 $9
         34        DO_ICALL                                                 
    6    35        INIT_FCALL                                               'var_dump'
         36        INIT_FCALL                                               'date'
         37        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         38        INIT_FCALL                                               'strtotime'
         39        SEND_VAL                                                 'now+%2B2%2C5+hours'
         40        DO_ICALL                                         $11     
         41        SEND_VAR                                                 $11
         42        DO_ICALL                                         $12     
         43        SEND_VAR                                                 $12
         44        DO_ICALL                                                 
    7    45        INIT_FCALL                                               'var_dump'
         46        INIT_FCALL                                               'date'
         47        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         48        INIT_FCALL                                               'strtotime'
         49        SEND_VAL                                                 'now+%2B2+5+hours'
         50        DO_ICALL                                         $14     
         51        SEND_VAR                                                 $14
         52        DO_ICALL                                         $15     
         53        SEND_VAR                                                 $15
         54        DO_ICALL                                                 
    8    55        INIT_FCALL                                               'var_dump'
         56        INIT_FCALL                                               'date'
         57        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         58        INIT_FCALL                                               'strtotime'
         59        SEND_VAL                                                 'now+%2B7+hours'
         60        DO_ICALL                                         $17     
         61        SEND_VAR                                                 $17
         62        DO_ICALL                                         $18     
         63        SEND_VAR                                                 $18
         64        DO_ICALL                                                 
         65      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.85 ms | 1400 KiB | 21 Q