3v4l.org

run code in 300+ PHP versions simultaneously
<?php $n = null; for ($us = 999000; $us <= 999999; $us++) { $v = (new DateTime("2017-01-01 00:00:00.{$us}"))->format("v"); if ($v != $n) { echo "{$us} -> {$v}\n"; $n = $v; } }
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 = 3
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 20
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 3
Branch analysis from position: 23
Branch analysis from position: 3
Branch analysis from position: 20
filename:       /in/NNDZV
function name:  (null)
number of ops:  24
compiled vars:  !0 = $n, !1 = $us, !2 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, null
    4     1        ASSIGN                                                   !1, 999000
          2      > JMP                                                      ->21
    5     3    >   NEW                                              $5      'DateTime'
          4        NOP                                                      
          5        FAST_CONCAT                                      ~6      '2017-01-01+00%3A00%3A00.', !1
          6        SEND_VAL_EX                                              ~6
          7        DO_FCALL                                      0          
          8        INIT_METHOD_CALL                                         $5, 'format'
          9        SEND_VAL_EX                                              'v'
         10        DO_FCALL                                      0  $8      
         11        ASSIGN                                                   !2, $8
    6    12        IS_NOT_EQUAL                                             !2, !0
         13      > JMPZ                                                     ~10, ->20
    7    14    >   ROPE_INIT                                     4  ~12     !1
         15        ROPE_ADD                                      1  ~12     ~12, '+-%3E+'
         16        ROPE_ADD                                      2  ~12     ~12, !2
         17        ROPE_END                                      3  ~11     ~12, '%0A'
         18        ECHO                                                     ~11
    8    19        ASSIGN                                                   !0, !2
    4    20    >   PRE_INC                                                  !1
         21    >   IS_SMALLER_OR_EQUAL                                      !1, 999999
         22      > JMPNZ                                                    ~16, ->3
   10    23    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.44 ms | 995 KiB | 13 Q