3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Europe/London'); $dts = array(); $dts[] = new DateTime('2013-07-09 10:01:02 America/New_York'); $dts[] = new DateTime('10:01:02'); $dts[] = new DateTime('10:01:02 America/New_York'); $dts[] = new DateTime('10:01:02 Australia/Sydney'); $dts[] = new DateTime('10:01:02 UTC'); foreach ( $dts as $dt ) echo $dt->format('c - e').PHP_EOL;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 30, Position 2 = 37
Branch analysis from position: 30
2 jumps found. (Code = 78) Position 1 = 31, Position 2 = 37
Branch analysis from position: 31
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 37
filename:       /in/skdPl
function name:  (null)
number of ops:  39
compiled vars:  !0 = $dts, !1 = $dt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'Europe%2FLondon'
          2        DO_ICALL                                                 
    3     3        ASSIGN                                                   !0, <array>
    4     4        NEW                                              $5      'DateTime'
          5        SEND_VAL_EX                                              '2013-07-09+10%3A01%3A02+America%2FNew_York'
          6        DO_FCALL                                      0          
          7        ASSIGN_DIM                                               !0
          8        OP_DATA                                                  $5
    5     9        NEW                                              $8      'DateTime'
         10        SEND_VAL_EX                                              '10%3A01%3A02'
         11        DO_FCALL                                      0          
         12        ASSIGN_DIM                                               !0
         13        OP_DATA                                                  $8
    6    14        NEW                                              $11     'DateTime'
         15        SEND_VAL_EX                                              '10%3A01%3A02+America%2FNew_York'
         16        DO_FCALL                                      0          
         17        ASSIGN_DIM                                               !0
         18        OP_DATA                                                  $11
    7    19        NEW                                              $14     'DateTime'
         20        SEND_VAL_EX                                              '10%3A01%3A02+Australia%2FSydney'
         21        DO_FCALL                                      0          
         22        ASSIGN_DIM                                               !0
         23        OP_DATA                                                  $14
    8    24        NEW                                              $17     'DateTime'
         25        SEND_VAL_EX                                              '10%3A01%3A02+UTC'
         26        DO_FCALL                                      0          
         27        ASSIGN_DIM                                               !0
         28        OP_DATA                                                  $17
   10    29      > FE_RESET_R                                       $19     !0, ->37
         30    > > FE_FETCH_R                                               $19, !1, ->37
   11    31    >   INIT_METHOD_CALL                                         !1, 'format'
         32        SEND_VAL_EX                                              'c+-+e'
         33        DO_FCALL                                      0  $20     
         34        CONCAT                                           ~21     $20, '%0A'
         35        ECHO                                                     ~21
   10    36      > JMP                                                      ->30
         37    >   FE_FREE                                                  $19
   11    38      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.21 ms | 1396 KiB | 15 Q