3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Europe/Madrid'); $date = new DateTime('@'.strtotime('2012-08-22 00:00:00 CEST')); 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/JWY5k
function name:  (null)
number of ops:  33
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                                               'strtotime'
          5        SEND_VAL                                                 '2012-08-22+00%3A00%3A00+CEST'
          6        DO_ICALL                                         $3      
          7        CONCAT                                           ~4      '%40', $3
          8        SEND_VAL_EX                                              ~4
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !0, $2
    6    11        INIT_METHOD_CALL                                         !0, 'format'
         12        SEND_VAL_EX                                              'Y-m-d+H%3Ai%3As+T'
         13        DO_FCALL                                      0  $7      
         14        CONCAT                                           ~8      $7, '+%28offset+'
         15        INIT_METHOD_CALL                                         !0, 'getOffset'
         16        DO_FCALL                                      0  $9      
         17        CONCAT                                           ~10     ~8, $9
         18        CONCAT                                           ~11     ~10, '%29%0A'
         19        ECHO                                                     ~11
    7    20        INIT_METHOD_CALL                                         !0, 'modify'
         21        SEND_VAL_EX                                              '%2B1+day'
         22        DO_FCALL                                      0          
    8    23        INIT_METHOD_CALL                                         !0, 'format'
         24        SEND_VAL_EX                                              'Y-m-d+H%3Ai%3As+T'
         25        DO_FCALL                                      0  $13     
         26        CONCAT                                           ~14     $13, '+%28offset+'
         27        INIT_METHOD_CALL                                         !0, 'getOffset'
         28        DO_FCALL                                      0  $15     
         29        CONCAT                                           ~16     ~14, $15
         30        CONCAT                                           ~17     ~16, '%29%0A'
         31        ECHO                                                     ~17
         32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.04 ms | 1388 KiB | 17 Q