3v4l.org

run code in 300+ PHP versions simultaneously
<?php $count = 1; $col = 'A'; while ($count < 300) { echo $count . ' = ' . $col . PHP_EOL; if (isset($col[1])) { echo (ord(strtolower($col[0])) - 96) * 26 + ord(strtolower($col[1])) . PHP_EOL; } else { echo ord(strtolower($col[0])) - 96 . PHP_EOL; } $col++; $count++; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 41
Branch analysis from position: 41
2 jumps found. (Code = 44) Position 1 = 43, Position 2 = 3
Branch analysis from position: 43
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 29
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 39
Branch analysis from position: 39
2 jumps found. (Code = 44) Position 1 = 43, Position 2 = 3
Branch analysis from position: 43
Branch analysis from position: 3
Branch analysis from position: 29
2 jumps found. (Code = 44) Position 1 = 43, Position 2 = 3
Branch analysis from position: 43
Branch analysis from position: 3
filename:       /in/fPCBg
function name:  (null)
number of ops:  44
compiled vars:  !0 = $count, !1 = $col
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 1
    4     1        ASSIGN                                                   !1, 'A'
    6     2      > JMP                                                      ->41
    7     3    >   CONCAT                                           ~4      !0, '+%3D+'
          4        CONCAT                                           ~5      ~4, !1
          5        CONCAT                                           ~6      ~5, '%0A'
          6        ECHO                                                     ~6
    9     7        ISSET_ISEMPTY_DIM_OBJ                         0          !1, 1
          8      > JMPZ                                                     ~7, ->29
   10     9    >   INIT_FCALL                                               'ord'
         10        INIT_FCALL                                               'strtolower'
         11        FETCH_DIM_R                                      ~8      !1, 0
         12        SEND_VAL                                                 ~8
         13        DO_ICALL                                         $9      
         14        SEND_VAR                                                 $9
         15        DO_ICALL                                         $10     
         16        SUB                                              ~11     $10, 96
         17        MUL                                              ~12     ~11, 26
         18        INIT_FCALL                                               'ord'
         19        INIT_FCALL                                               'strtolower'
         20        FETCH_DIM_R                                      ~13     !1, 1
         21        SEND_VAL                                                 ~13
         22        DO_ICALL                                         $14     
         23        SEND_VAR                                                 $14
         24        DO_ICALL                                         $15     
         25        ADD                                              ~16     ~12, $15
         26        CONCAT                                           ~17     ~16, '%0A'
         27        ECHO                                                     ~17
         28      > JMP                                                      ->39
   12    29    >   INIT_FCALL                                               'ord'
         30        INIT_FCALL                                               'strtolower'
         31        FETCH_DIM_R                                      ~18     !1, 0
         32        SEND_VAL                                                 ~18
         33        DO_ICALL                                         $19     
         34        SEND_VAR                                                 $19
         35        DO_ICALL                                         $20     
         36        SUB                                              ~21     $20, 96
         37        CONCAT                                           ~22     ~21, '%0A'
         38        ECHO                                                     ~22
   14    39    >   PRE_INC                                                  !1
   15    40        PRE_INC                                                  !0
    6    41    >   IS_SMALLER                                               !0, 300
         42      > JMPNZ                                                    ~25, ->3
   16    43    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.25 ms | 1392 KiB | 17 Q