3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dts = array( "2012/09/03", "2012/12/25", "2012/12/26", "1 apr 2013", "30 apr 2013", "9 may 2013", "10 may 2013", "20 may 2013", "25 dec 2013", "26 dec 2013", "27 dec 2013", "30 dec 2013", "31 dec 2013", "1 jan 2014", ); foreach ($dts as $dt) { $dt = new DateTime($dt); echo $dt->format('r')."\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 13
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 13
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/J3IE2
function name:  (null)
number of ops:  15
compiled vars:  !0 = $dts, !1 = $dt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   19     1      > FE_RESET_R                                       $3      !0, ->13
          2    > > FE_FETCH_R                                               $3, !1, ->13
   20     3    >   NEW                                              $4      'DateTime'
          4        SEND_VAR_EX                                              !1
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $4
   21     7        INIT_METHOD_CALL                                         !1, 'format'
          8        SEND_VAL_EX                                              'r'
          9        DO_FCALL                                      0  $7      
         10        CONCAT                                           ~8      $7, '%0A'
         11        ECHO                                                     ~8
   19    12      > JMP                                                      ->2
         13    >   FE_FREE                                                  $3
   22    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.21 ms | 1393 KiB | 13 Q