3v4l.org

run code in 300+ PHP versions simultaneously
<?php $columns = 6; $rows = 4; $i = 1; $s = $columns - 1; for ($x = 0; $x < $columns * $rows; $x++) { if ($x % $columns == 0) echo PHP_EOL; echo $i; if ($x > 0 && $x % $s == 0) { $s = ceil($s / 2) - 1; $i++; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 7
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 11
Branch analysis from position: 10
2 jumps found. (Code = 46) Position 1 = 14, Position 2 = 17
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 25
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 7
Branch analysis from position: 29
Branch analysis from position: 7
Branch analysis from position: 25
Branch analysis from position: 17
Branch analysis from position: 11
filename:       /in/HtnaB
function name:  (null)
number of ops:  30
compiled vars:  !0 = $columns, !1 = $rows, !2 = $i, !3 = $s, !4 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 6
    4     1        ASSIGN                                                   !1, 4
    5     2        ASSIGN                                                   !2, 1
    7     3        SUB                                              ~8      !0, 1
          4        ASSIGN                                                   !3, ~8
    8     5        ASSIGN                                                   !4, 0
          6      > JMP                                                      ->26
    9     7    >   MOD                                              ~11     !4, !0
          8        IS_EQUAL                                                 ~11, 0
          9      > JMPZ                                                     ~12, ->11
         10    >   ECHO                                                     '%0A'
   10    11    >   ECHO                                                     !2
   11    12        IS_SMALLER                                       ~13     0, !4
         13      > JMPZ_EX                                          ~13     ~13, ->17
         14    >   MOD                                              ~14     !4, !3
         15        IS_EQUAL                                         ~15     ~14, 0
         16        BOOL                                             ~13     ~15
         17    > > JMPZ                                                     ~13, ->25
   12    18    >   INIT_FCALL                                               'ceil'
         19        DIV                                              ~16     !3, 2
         20        SEND_VAL                                                 ~16
         21        DO_ICALL                                         $17     
         22        SUB                                              ~18     $17, 1
         23        ASSIGN                                                   !3, ~18
   13    24        PRE_INC                                                  !2
    8    25    >   PRE_INC                                                  !4
         26    >   MUL                                              ~22     !0, !1
         27        IS_SMALLER                                               !4, ~22
         28      > JMPNZ                                                    ~23, ->7
   15    29    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.81 ms | 1396 KiB | 15 Q