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 ('Y.z', "2012.$d"); $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 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 2
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 2
Branch analysis from position: 21
Branch analysis from position: 2
filename:       /in/2In8R
function name:  (null)
number of ops:  22
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                                                          ->19
    6     2    >   INIT_STATIC_METHOD_CALL                                      'DateTime', 'createFromFormat'
          3        SEND_VAL                                                     'Y.z'
          4        NOP                                                          
          5        FAST_CONCAT                                          ~4      '2012.', !0
          6        SEND_VAL                                                     ~4
          7        DO_FCALL                                          0  $5      
          8        ASSIGN                                                       !1, $5
    7     9        INIT_METHOD_CALL                                             !1, 'format'
         10        SEND_VAL_EX                                                  'd.m.Y'
         11        DO_FCALL                                          0  $7      
         12        ASSIGN                                                       !2, $7
    8    13        ROPE_INIT                                         4  ~10     !0
         14        ROPE_ADD                                          1  ~10     ~10, '+'
         15        ROPE_ADD                                          2  ~10     ~10, !2
         16        ROPE_END                                          3  ~9      ~10, '%0A'
         17        ECHO                                                         ~9
    4    18        PRE_INC                                                      !0
         19    >   IS_SMALLER                                                   !0, 65
         20      > JMPNZ                                                        ~13, ->2
    9    21    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
173.73 ms | 2026 KiB | 13 Q