3v4l.org

run code in 300+ PHP versions simultaneously
<?php $uid=8193; function q1() { global $uid; srand($uid); $n=50;$str=""; while($n--) { $char=rand(32,126); if(($char>=48 && $char<=57) || ($char>=65 && $char<=90) || ($char>=97 && $char <=122)) $str=$str.chr($char); } return $str; } echo q1();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rQTDk
function name:  (null)
number of ops:  5
compiled vars:  !0 = $uid
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 8193
   16     1        INIT_FCALL                                               'q1'
          2        DO_FCALL                                      0  $2      
          3        ECHO                                                     $2
          4      > RETURN                                                   1

Function q1:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 34
Branch analysis from position: 34
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 7
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 46) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
2 jumps found. (Code = 47) Position 1 = 17, Position 2 = 22
Branch analysis from position: 17
2 jumps found. (Code = 46) Position 1 = 19, Position 2 = 21
Branch analysis from position: 19
2 jumps found. (Code = 47) Position 1 = 23, Position 2 = 28
Branch analysis from position: 23
2 jumps found. (Code = 46) Position 1 = 25, Position 2 = 27
Branch analysis from position: 25
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 34
Branch analysis from position: 29
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 7
Branch analysis from position: 36
Branch analysis from position: 7
Branch analysis from position: 34
Branch analysis from position: 27
Branch analysis from position: 28
Branch analysis from position: 21
Branch analysis from position: 22
Branch analysis from position: 16
filename:       /in/rQTDk
function name:  q1
number of ops:  38
compiled vars:  !0 = $uid, !1 = $n, !2 = $str, !3 = $char
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   BIND_GLOBAL                                              !0, 'uid'
    6     1        INIT_FCALL                                               'srand'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    7     4        ASSIGN                                                   !1, 50
          5        ASSIGN                                                   !2, ''
    8     6      > JMP                                                      ->34
   10     7    >   INIT_FCALL                                               'rand'
          8        SEND_VAL                                                 32
          9        SEND_VAL                                                 126
         10        DO_ICALL                                         $7      
         11        ASSIGN                                                   !3, $7
   11    12        IS_SMALLER_OR_EQUAL                              ~9      48, !3
         13      > JMPZ_EX                                          ~9      ~9, ->16
         14    >   IS_SMALLER_OR_EQUAL                              ~10     !3, 57
         15        BOOL                                             ~9      ~10
         16    > > JMPNZ_EX                                         ~9      ~9, ->22
         17    >   IS_SMALLER_OR_EQUAL                              ~11     65, !3
         18      > JMPZ_EX                                          ~11     ~11, ->21
         19    >   IS_SMALLER_OR_EQUAL                              ~12     !3, 90
         20        BOOL                                             ~11     ~12
         21    >   BOOL                                             ~9      ~11
         22    > > JMPNZ_EX                                         ~9      ~9, ->28
         23    >   IS_SMALLER_OR_EQUAL                              ~13     97, !3
         24      > JMPZ_EX                                          ~13     ~13, ->27
         25    >   IS_SMALLER_OR_EQUAL                              ~14     !3, 122
         26        BOOL                                             ~13     ~14
         27    >   BOOL                                             ~9      ~13
         28    > > JMPZ                                                     ~9, ->34
   12    29    >   INIT_FCALL                                               'chr'
         30        SEND_VAR                                                 !3
         31        DO_ICALL                                         $15     
         32        CONCAT                                           ~16     !2, $15
         33        ASSIGN                                                   !2, ~16
    8    34    >   POST_DEC                                         ~18     !1
         35      > JMPNZ                                                    ~18, ->7
   14    36    > > RETURN                                                   !2
   15    37*     > RETURN                                                   null

End of function q1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.56 ms | 1403 KiB | 20 Q