3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = random_bytes(13); $decoded = ''; $letterRange = (ord('a')-ord('Z')); for($i = 0; $i < strlen($str); $i++) { $decoded .= chr(ord($str[$i])%$letterRange + ord('a')); } echo $str.'|'.$decoded;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 8
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 8
Branch analysis from position: 22
Branch analysis from position: 8
filename:       /in/FTQL5
function name:  (null)
number of ops:  26
compiled vars:  !0 = $str, !1 = $decoded, !2 = $letterRange, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'random_bytes'
          1        SEND_VAL                                                 13
          2        DO_ICALL                                         $4      
          3        ASSIGN                                                   !0, $4
    4     4        ASSIGN                                                   !1, ''
    5     5        ASSIGN                                                   !2, 7
    6     6        ASSIGN                                                   !3, 0
          7      > JMP                                                      ->19
    8     8    >   INIT_FCALL                                               'chr'
          9        INIT_FCALL                                               'ord'
         10        FETCH_DIM_R                                      ~9      !0, !3
         11        SEND_VAL                                                 ~9
         12        DO_ICALL                                         $10     
         13        MOD                                              ~11     $10, !2
         14        ADD                                              ~12     ~11, 97
         15        SEND_VAL                                                 ~12
         16        DO_ICALL                                         $13     
         17        ASSIGN_OP                                     8          !1, $13
    6    18        PRE_INC                                                  !3
         19    >   STRLEN                                           ~16     !0
         20        IS_SMALLER                                               !3, ~16
         21      > JMPNZ                                                    ~17, ->8
   10    22    >   CONCAT                                           ~18     !0, '%7C'
         23        CONCAT                                           ~19     ~18, !1
         24        ECHO                                                     ~19
   11    25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.18 ms | 1000 KiB | 16 Q