3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 1; $i <= 60; ++$i) { printf("Year: %d, Month: %d\n", intdiv($i, 12), $i % 12); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 2
Branch analysis from position: 15
Branch analysis from position: 2
filename:       /in/ncMK3
function name:  (null)
number of ops:  16
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 1
          1      > JMP                                                      ->13
    4     2    >   INIT_FCALL                                               'printf'
          3        SEND_VAL                                                 'Year%3A+%25d%2C+Month%3A+%25d%0A'
          4        INIT_FCALL                                               'intdiv'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 12
          7        DO_ICALL                                         $2      
          8        SEND_VAR                                                 $2
          9        MOD                                              ~3      !0, 12
         10        SEND_VAL                                                 ~3
         11        DO_ICALL                                                 
    3    12        PRE_INC                                                  !0
         13    >   IS_SMALLER_OR_EQUAL                                      !0, 60
         14      > JMPNZ                                                    ~6, ->2
    5    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.83 ms | 1010 KiB | 15 Q