3v4l.org

run code in 300+ PHP versions simultaneously
<?php function quickRandom($length = 16) { $pool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; return substr(str_shuffle(str_repeat($pool, 5)), 0, $length); } echo strlen(quickRandom(311));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iF2Q2
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'quickrandom'
          1        SEND_VAL                                                 311
          2        DO_FCALL                                      0  $0      
          3        STRLEN                                           ~1      $0
          4        ECHO                                                     ~1
          5      > RETURN                                                   1

Function quickrandom:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iF2Q2
function name:  quickRandom
number of ops:  16
compiled vars:  !0 = $length, !1 = $pool
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV_INIT                                        !0      16
    3     1        ASSIGN                                                   !1, '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
    5     2        INIT_FCALL                                               'substr'
          3        INIT_FCALL                                               'str_shuffle'
          4        INIT_FCALL                                               'str_repeat'
          5        SEND_VAR                                                 !1
          6        SEND_VAL                                                 5
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        DO_ICALL                                         $4      
         10        SEND_VAR                                                 $4
         11        SEND_VAL                                                 0
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $5      
         14      > RETURN                                                   $5
    6    15*     > RETURN                                                   null

End of function quickrandom

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.95 ms | 1398 KiB | 20 Q