3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Source: https://bugs.php.net/bug.php?id=62476 date_default_timezone_set('Europe/Berlin'); for ($d=55; $d<65; $d++) { $dt = DateTime::createFromFormat ('z.Y', $d.'.2012'); $dd = $dt->format ('d.m.Y'); echo "$d $dd\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 5
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 5
Branch analysis from position: 23
Branch analysis from position: 5
filename:       /in/29gMG
function name:  (null)
number of ops:  24
compiled vars:  !0 = $d, !1 = $dt, !2 = $dd
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'Europe%2FBerlin'
          2        DO_ICALL                                                 
    6     3        ASSIGN                                                   !0, 55
          4      > JMP                                                      ->21
    8     5    >   INIT_STATIC_METHOD_CALL                                  'DateTime', 'createFromFormat'
          6        SEND_VAL                                                 'z.Y'
          7        CONCAT                                           ~5      !0, '.2012'
          8        SEND_VAL                                                 ~5
          9        DO_FCALL                                      0  $6      
         10        ASSIGN                                                   !1, $6
    9    11        INIT_METHOD_CALL                                         !1, 'format'
         12        SEND_VAL_EX                                              'd.m.Y'
         13        DO_FCALL                                      0  $8      
         14        ASSIGN                                                   !2, $8
   10    15        ROPE_INIT                                     4  ~11     !0
         16        ROPE_ADD                                      1  ~11     ~11, '+'
         17        ROPE_ADD                                      2  ~11     ~11, !2
         18        ROPE_END                                      3  ~10     ~11, '%0A'
         19        ECHO                                                     ~10
    6    20        PRE_INC                                                  !0
         21    >   IS_SMALLER                                               !0, 65
         22      > JMPNZ                                                    ~14, ->5
   11    23    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.87 ms | 1395 KiB | 15 Q