3v4l.org

run code in 300+ PHP versions simultaneously
<?php $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').PHP_EOL;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 22, Position 2 = 29
Branch analysis from position: 22
2 jumps found. (Code = 78) Position 1 = 23, Position 2 = 29
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
filename:       /in/Yn44G
function name:  (null)
number of ops:  31
compiled vars:  !0 = $dts, !1 = $dt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        NEW                                              $4      'DateTime'
          2        SEND_VAL_EX                                              '2013-07-09+10%3A01%3A02+America%2FNew_York'
          3        DO_FCALL                                      0          
          4        ASSIGN_DIM                                               !0
          5        OP_DATA                                                  $4
    4     6        NEW                                              $7      'DateTime'
          7        SEND_VAL_EX                                              '10%3A01%3A02'
          8        DO_FCALL                                      0          
          9        ASSIGN_DIM                                               !0
         10        OP_DATA                                                  $7
    5    11        NEW                                              $10     'DateTime'
         12        SEND_VAL_EX                                              '10%3A01%3A02+America%2FNew_York'
         13        DO_FCALL                                      0          
         14        ASSIGN_DIM                                               !0
         15        OP_DATA                                                  $10
    6    16        NEW                                              $13     'DateTime'
         17        SEND_VAL_EX                                              '10%3A01%3A02+Australia%2FSydney'
         18        DO_FCALL                                      0          
         19        ASSIGN_DIM                                               !0
         20        OP_DATA                                                  $13
    8    21      > FE_RESET_R                                       $15     !0, ->29
         22    > > FE_FETCH_R                                               $15, !1, ->29
    9    23    >   INIT_METHOD_CALL                                         !1, 'format'
         24        SEND_VAL_EX                                              'c'
         25        DO_FCALL                                      0  $16     
         26        CONCAT                                           ~17     $16, '%0A'
         27        ECHO                                                     ~17
    8    28      > JMP                                                      ->22
         29    >   FE_FREE                                                  $15
    9    30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.25 ms | 1395 KiB | 13 Q