3v4l.org

run code in 500+ PHP versions simultaneously
<?php // Source: https://bugs.php.net/bug.php?id=62476 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 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 2
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 2
Branch analysis from position: 20
Branch analysis from position: 2
filename:       /in/DgUUQ
function name:  (null)
number of ops:  21
compiled vars:  !0 = $d, !1 = $dt, !2 = $dd
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                       !0, 55
          1      > JMP                                                          ->18
    6     2    >   INIT_STATIC_METHOD_CALL                                      'DateTime', 'createFromFormat'
          3        SEND_VAL                                                     'z.Y'
          4        CONCAT                                               ~4      !0, '.2012'
          5        SEND_VAL                                                     ~4
          6        DO_FCALL                                          0  $5      
          7        ASSIGN                                                       !1, $5
    7     8        INIT_METHOD_CALL                                             !1, 'format'
          9        SEND_VAL_EX                                                  'd.m.Y'
         10        DO_FCALL                                          0  $7      
         11        ASSIGN                                                       !2, $7
    8    12        ROPE_INIT                                         4  ~10     !0
         13        ROPE_ADD                                          1  ~10     ~10, '+'
         14        ROPE_ADD                                          2  ~10     ~10, !2
         15        ROPE_END                                          3  ~9      ~10, '%0A'
         16        ECHO                                                         ~9
    4    17        PRE_INC                                                      !0
         18    >   IS_SMALLER                                                   !0, 65
         19      > JMPNZ                                                        ~13, ->2
    9    20    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
157.53 ms | 3104 KiB | 11 Q