3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.24 ms | 1400 KiB | 21 Q