3v4l.org

run code in 500+ PHP versions simultaneously
<?php function randomPassword() { $currentmonth = date('n') - 1; $alphabet = "abcdefghijklm"; $random_hash = substr(md5(uniqid(rand(), true)), 28, 4); return $random_hash . substr($alphabet, $currentmonth, 1); } echo randomPassword();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FWcka
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                                   'randompassword'
          1        DO_FCALL                                          0  $0      
          2        ECHO                                                         $0
          3      > RETURN                                                       1

Function randompassword:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FWcka
function name:  randomPassword
number of ops:  23
compiled vars:  !0 = $currentmonth, !1 = $alphabet, !2 = $random_hash
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                                   'date'
          1        SEND_VAL                                                     'n'
          2        DO_ICALL                                             $3      
          3        SUB                                                  ~4      $3, 1
          4        ASSIGN                                                       !0, ~4
    5     5        ASSIGN                                                       !1, 'abcdefghijklm'
    6     6        INIT_FCALL                                                   'md5'
          7        INIT_FCALL                                                   'uniqid'
          8        INIT_FCALL                                                   'rand'
          9        DO_ICALL                                             $7      
         10        SEND_VAR                                                     $7
         11        SEND_VAL                                                     <true>
         12        DO_ICALL                                             $8      
         13        SEND_VAR                                                     $8
         14        DO_ICALL                                             $9      
         15        FRAMELESS_ICALL_3                substr              ~10     $9, 28
         16        OP_DATA                                                      4
         17        ASSIGN                                                       !2, ~10
    7    18        FRAMELESS_ICALL_3                substr              ~12     !1, !0
         19        OP_DATA                                                      1
         20        CONCAT                                               ~13     !2, ~12
         21      > RETURN                                                       ~13
    8    22*     > RETURN                                                       null

End of function randompassword

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
157.98 ms | 1573 KiB | 18 Q