3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach(range(0,11) as $month): echo date( 'F', strtotime( sprintf( 'Jan +%d months', $month ) ) ) . "\n"; endforeach;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 20
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 20
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/sjgQU
function name:  (null)
number of ops:  22
compiled vars:  !0 = $month
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 0
          2        SEND_VAL                                                 11
          3        DO_ICALL                                         $1      
          4      > FE_RESET_R                                       $2      $1, ->20
          5    > > FE_FETCH_R                                               $2, !0, ->20
    3     6    >   INIT_FCALL                                               'date'
          7        SEND_VAL                                                 'F'
          8        INIT_FCALL                                               'strtotime'
          9        INIT_FCALL                                               'sprintf'
         10        SEND_VAL                                                 'Jan+%2B%25d+months'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $3      
         13        SEND_VAR                                                 $3
         14        DO_ICALL                                         $4      
         15        SEND_VAR                                                 $4
         16        DO_ICALL                                         $5      
         17        CONCAT                                           ~6      $5, '%0A'
         18        ECHO                                                     ~6
    2    19      > JMP                                                      ->5
         20    >   FE_FREE                                                  $2
    4    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.09 ms | 1386 KiB | 21 Q