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'); 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 = 25, Position 2 = 32
Branch analysis from position: 25
2 jumps found. (Code = 78) Position 1 = 26, Position 2 = 32
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 32
filename:       /in/0oEqh
function name:  (null)
number of ops:  34
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
    9    24      > FE_RESET_R                                       $16     !0, ->32
         25    > > FE_FETCH_R                                               $16, !1, ->32
   10    26    >   INIT_METHOD_CALL                                         !1, 'format'
         27        SEND_VAL_EX                                              'c+-+e'
         28        DO_FCALL                                      0  $17     
         29        CONCAT                                           ~18     $17, '%0A'
         30        ECHO                                                     ~18
    9    31      > JMP                                                      ->25
         32    >   FE_FREE                                                  $16
   10    33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.29 ms | 1396 KiB | 15 Q