3v4l.org

run code in 300+ PHP versions simultaneously
<?php function str_rand($length=10) { return substr(str_shuffle(MD5(microtime())), 0, 10); } echo str_rand();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/o3MIt
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'str_rand'
          1        DO_FCALL                                      0  $0      
          2        ECHO                                                     $0
          3      > RETURN                                                   1

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

End of function str_rand

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.66 ms | 1401 KiB | 22 Q