3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tpl = "AR42-8LNA-%sEQ3"; $char = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; $length = strlen($char)-1; for($i=0; i<=$length; $i++) { printf($tpl, substr($char, $i, 1)); echo PHP_EOL; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 7
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 7
Branch analysis from position: 21
Branch analysis from position: 7
filename:       /in/L95PP
function name:  (null)
number of ops:  22
compiled vars:  !0 = $tpl, !1 = $char, !2 = $length, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'AR42-8LNA-%25sEQ3'
    5     1        ASSIGN                                                   !1, '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    7     2        STRLEN                                           ~6      !1
          3        SUB                                              ~7      ~6, 1
          4        ASSIGN                                                   !2, ~7
    8     5        ASSIGN                                                   !3, 0
          6      > JMP                                                      ->18
    9     7    >   INIT_FCALL                                               'printf'
          8        SEND_VAR                                                 !0
          9        INIT_FCALL                                               'substr'
         10        SEND_VAR                                                 !1
         11        SEND_VAR                                                 !3
         12        SEND_VAL                                                 1
         13        DO_ICALL                                         $10     
         14        SEND_VAR                                                 $10
         15        DO_ICALL                                                 
   10    16        ECHO                                                     '%0A'
    8    17        PRE_INC                                                  !3
         18    >   FETCH_CONSTANT                                   ~13     'i'
         19        IS_SMALLER_OR_EQUAL                                      ~13, !2
         20      > JMPNZ                                                    ~14, ->7
   11    21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.43 ms | 1395 KiB | 17 Q