3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 0;$i < 20; $i++){ echo strlen(rtrim(strtr(base64_encode(random_bytes(24)), '+/', '-_'), '=')); echo "\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 2
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 2
Branch analysis from position: 23
Branch analysis from position: 2
filename:       /in/Wt83I
function name:  (null)
number of ops:  24
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->21
    3     2    >   INIT_FCALL                                               'rtrim'
          3        INIT_FCALL                                               'strtr'
          4        INIT_FCALL                                               'base64_encode'
          5        INIT_FCALL                                               'random_bytes'
          6        SEND_VAL                                                 24
          7        DO_ICALL                                         $2      
          8        SEND_VAR                                                 $2
          9        DO_ICALL                                         $3      
         10        SEND_VAR                                                 $3
         11        SEND_VAL                                                 '%2B%2F'
         12        SEND_VAL                                                 '-_'
         13        DO_ICALL                                         $4      
         14        SEND_VAR                                                 $4
         15        SEND_VAL                                                 '%3D'
         16        DO_ICALL                                         $5      
         17        STRLEN                                           ~6      $5
         18        ECHO                                                     ~6
    4    19        ECHO                                                     '%0A'
    2    20        PRE_INC                                                  !0
         21    >   IS_SMALLER                                               !0, 20
         22      > JMPNZ                                                    ~8, ->2
    5    23    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.88 ms | 1395 KiB | 21 Q