3v4l.org

run code in 300+ PHP versions simultaneously
<?php function RandomString() { $characters = ’0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ’; $randstring = ''; for ($i = 0; $i < 10; $i++) { $randstring = $characters[rand(0, strlen($characters))]; } return $randstring; } echo RandomString();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L3GDv
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'randomstring'
          1        DO_FCALL                                      0  $0      
          2        ECHO                                                     $0
          3      > RETURN                                                   1

Function randomstring:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 5
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 5
Branch analysis from position: 15
Branch analysis from position: 5
filename:       /in/L3GDv
function name:  RandomString
number of ops:  17
compiled vars:  !0 = $characters, !1 = $randstring, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   FETCH_CONSTANT                                   ~3      '%E2%80%990123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ%E2%80%99'
          1        ASSIGN                                                   !0, ~3
    5     2        ASSIGN                                                   !1, ''
    6     3        ASSIGN                                                   !2, 0
          4      > JMP                                                      ->13
    7     5    >   INIT_FCALL                                               'rand'
          6        SEND_VAL                                                 0
          7        STRLEN                                           ~7      !0
          8        SEND_VAL                                                 ~7
          9        DO_ICALL                                         $8      
         10        FETCH_DIM_R                                      ~9      !0, $8
         11        ASSIGN                                                   !1, ~9
    6    12        PRE_INC                                                  !2
         13    >   IS_SMALLER                                               !2, 10
         14      > JMPNZ                                                    ~12, ->5
    9    15    > > RETURN                                                   !1
   10    16*     > RETURN                                                   null

End of function randomstring

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.25 ms | 1398 KiB | 16 Q