3v4l.org

run code in 300+ PHP versions simultaneously
<?php $charset=str_repeat("abcdefghijklmnopqrstuvwxyz",2); $msg="tm bcsv qolfp f'dmvd xuhm exl tgak hlrkiv sydg hxm qiswzzwf qrf oqdueqe dpae resd wndo liva bu vgtokx sjzk hmb rqch fqwbg fmmft seront sntsdr pmsecq"; $format=explode(" ",$msg); for($element=0;$element<=count($format);$element++){ $string=$format[$element]; $len=strlen($string); $key=$element+1; print $string." ".$len." ".$key."\n"; for($char=0;$char<=$len-1;$char++){ $l=strpos($charset,substr($string,$char,1)); print substr($string,$char,1)."\n"; $n=substr($charset,$l+$key,1); print $n."\n"; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 58
Branch analysis from position: 58
2 jumps found. (Code = 44) Position 1 = 61, Position 2 = 13
Branch analysis from position: 61
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 54
Branch analysis from position: 54
2 jumps found. (Code = 44) Position 1 = 57, Position 2 = 27
Branch analysis from position: 57
2 jumps found. (Code = 44) Position 1 = 61, Position 2 = 13
Branch analysis from position: 61
Branch analysis from position: 13
Branch analysis from position: 27
2 jumps found. (Code = 44) Position 1 = 57, Position 2 = 27
Branch analysis from position: 57
Branch analysis from position: 27
filename:       /in/31dgd
function name:  (null)
number of ops:  62
compiled vars:  !0 = $charset, !1 = $msg, !2 = $format, !3 = $element, !4 = $string, !5 = $len, !6 = $key, !7 = $char, !8 = $l, !9 = $n
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'str_repeat'
          1        SEND_VAL                                                 'abcdefghijklmnopqrstuvwxyz'
          2        SEND_VAL                                                 2
          3        DO_ICALL                                         $10     
          4        ASSIGN                                                   !0, $10
    3     5        ASSIGN                                                   !1, 'tm+bcsv+qolfp+f%27dmvd+xuhm+exl+tgak+hlrkiv+sydg+hxm+qiswzzwf+qrf+oqdueqe+dpae+resd+wndo+liva+bu+vgtokx+sjzk+hmb+rqch+fqwbg+fmmft+seront+sntsdr+pmsecq'
    4     6        INIT_FCALL                                               'explode'
          7        SEND_VAL                                                 '+'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $13     
         10        ASSIGN                                                   !2, $13
    5    11        ASSIGN                                                   !3, 0
         12      > JMP                                                      ->58
    6    13    >   FETCH_DIM_R                                      ~16     !2, !3
         14        ASSIGN                                                   !4, ~16
    7    15        STRLEN                                           ~18     !4
         16        ASSIGN                                                   !5, ~18
    8    17        ADD                                              ~20     !3, 1
         18        ASSIGN                                                   !6, ~20
    9    19        CONCAT                                           ~22     !4, '+'
         20        CONCAT                                           ~23     ~22, !5
         21        CONCAT                                           ~24     ~23, '+'
         22        CONCAT                                           ~25     ~24, !6
         23        CONCAT                                           ~26     ~25, '%0A'
         24        ECHO                                                     ~26
   10    25        ASSIGN                                                   !7, 0
         26      > JMP                                                      ->54
   11    27    >   INIT_FCALL                                               'strpos'
         28        SEND_VAR                                                 !0
         29        INIT_FCALL                                               'substr'
         30        SEND_VAR                                                 !4
         31        SEND_VAR                                                 !7
         32        SEND_VAL                                                 1
         33        DO_ICALL                                         $28     
         34        SEND_VAR                                                 $28
         35        DO_ICALL                                         $29     
         36        ASSIGN                                                   !8, $29
   12    37        INIT_FCALL                                               'substr'
         38        SEND_VAR                                                 !4
         39        SEND_VAR                                                 !7
         40        SEND_VAL                                                 1
         41        DO_ICALL                                         $31     
         42        CONCAT                                           ~32     $31, '%0A'
         43        ECHO                                                     ~32
   13    44        INIT_FCALL                                               'substr'
         45        SEND_VAR                                                 !0
         46        ADD                                              ~33     !8, !6
         47        SEND_VAL                                                 ~33
         48        SEND_VAL                                                 1
         49        DO_ICALL                                         $34     
         50        ASSIGN                                                   !9, $34
   14    51        CONCAT                                           ~36     !9, '%0A'
         52        ECHO                                                     ~36
   10    53        PRE_INC                                                  !7
         54    >   SUB                                              ~38     !5, 1
         55        IS_SMALLER_OR_EQUAL                                      !7, ~38
         56      > JMPNZ                                                    ~39, ->27
    5    57    >   PRE_INC                                                  !3
         58    >   COUNT                                            ~41     !2
         59        IS_SMALLER_OR_EQUAL                                      !3, ~41
         60      > JMPNZ                                                    ~42, ->13
   16    61    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.51 ms | 1400 KiB | 21 Q