3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Europe/Madrid'); $date = new DateTime('@'.time()); echo $date->format('Y-m-d H:i:s T').' (offset '.$date->getOffset().")\n"; $date->modify('+1 day'); echo $date->format('Y-m-d H:i:s T').' (offset '.$date->getOffset().")\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/55bOG
function name:  (null)
number of ops:  32
compiled vars:  !0 = $date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'Europe%2FMadrid'
          2        DO_ICALL                                                 
    5     3        NEW                                              $2      'DateTime'
          4        INIT_FCALL                                               'time'
          5        DO_ICALL                                         $3      
          6        CONCAT                                           ~4      '%40', $3
          7        SEND_VAL_EX                                              ~4
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !0, $2
    6    10        INIT_METHOD_CALL                                         !0, 'format'
         11        SEND_VAL_EX                                              'Y-m-d+H%3Ai%3As+T'
         12        DO_FCALL                                      0  $7      
         13        CONCAT                                           ~8      $7, '+%28offset+'
         14        INIT_METHOD_CALL                                         !0, 'getOffset'
         15        DO_FCALL                                      0  $9      
         16        CONCAT                                           ~10     ~8, $9
         17        CONCAT                                           ~11     ~10, '%29%0A'
         18        ECHO                                                     ~11
    7    19        INIT_METHOD_CALL                                         !0, 'modify'
         20        SEND_VAL_EX                                              '%2B1+day'
         21        DO_FCALL                                      0          
    8    22        INIT_METHOD_CALL                                         !0, 'format'
         23        SEND_VAL_EX                                              'Y-m-d+H%3Ai%3As+T'
         24        DO_FCALL                                      0  $13     
         25        CONCAT                                           ~14     $13, '+%28offset+'
         26        INIT_METHOD_CALL                                         !0, 'getOffset'
         27        DO_FCALL                                      0  $15     
         28        CONCAT                                           ~16     ~14, $15
         29        CONCAT                                           ~17     ~16, '%29%0A'
         30        ECHO                                                     ~17
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.97 ms | 1400 KiB | 17 Q