3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array("14CDF1","CDCCC0","5E9CF5","FFAFEE","30FC40","DF00FF","007EFC","FA9F01","00FFC0","4FD01F","C0F22F","4A9CE1","166FEC","4F991D","C0F22C","FAACC1","A9AC99","DFD01F","C0FC3A","A99F01","0AC4C0","2DA01F","CC652F","FA9881","00CFC0","4FD41F","CC92CF"); $x = '1324341625312666243113212535'; for($i=0;$i<strlen($x);$i++) //print $a[$i].' '.$x[$i]."\n"; print $a[$i][(((int)$x[$i+1])-1)];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 4
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 4
Branch analysis from position: 15
Branch analysis from position: 4
filename:       /in/YFjsE
function name:  (null)
number of ops:  16
compiled vars:  !0 = $a, !1 = $x, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, '1324341625312666243113212535'
    5     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->12
    7     4    >   ADD                                              ~7      !2, 1
          5        FETCH_DIM_R                                      ~8      !1, ~7
          6        CAST                                          4  ~9      ~8
          7        SUB                                              ~10     ~9, 1
          8        FETCH_DIM_R                                      ~6      !0, !2
          9        FETCH_DIM_R                                      ~11     ~6, ~10
         10        ECHO                                                     ~11
    5    11        PRE_INC                                                  !2
         12    >   STRLEN                                           ~13     !1
         13        IS_SMALLER                                               !2, ~13
         14      > JMPNZ                                                    ~14, ->4
    7    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
193.4 ms | 1393 KiB | 13 Q