3v4l.org

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

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

End of function randomreceipt

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.35 ms | 1397 KiB | 20 Q