3v4l.org

run code in 300+ PHP versions simultaneously
<?php function createPassword($input) { $this->salt = substr(md5(time()), 0, 20); return sha1($this->salt . sha1($input) . $this->salt); $salt = $this->salt; } createPassword("cieren");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/H7l67
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'createpassword'
          1        SEND_VAL                                                 'cieren'
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

Function createpassword:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/H7l67
function name:  createPassword
number of ops:  31
compiled vars:  !0 = $input, !1 = $salt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        FETCH_THIS                                       $2      
          2        INIT_FCALL                                               'substr'
          3        INIT_FCALL                                               'md5'
          4        INIT_FCALL                                               'time'
          5        DO_ICALL                                         $4      
          6        SEND_VAR                                                 $4
          7        DO_ICALL                                         $5      
          8        SEND_VAR                                                 $5
          9        SEND_VAL                                                 0
         10        SEND_VAL                                                 20
         11        DO_ICALL                                         $6      
         12        ASSIGN_OBJ                                               $2, 'salt'
         13        OP_DATA                                                  $6
    7    14        INIT_FCALL                                               'sha1'
         15        FETCH_THIS                                       $7      
         16        FETCH_OBJ_R                                      ~8      $7, 'salt'
         17        INIT_FCALL                                               'sha1'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                         $9      
         20        CONCAT                                           ~10     ~8, $9
         21        FETCH_THIS                                       $11     
         22        FETCH_OBJ_R                                      ~12     $11, 'salt'
         23        CONCAT                                           ~13     ~10, ~12
         24        SEND_VAL                                                 ~13
         25        DO_ICALL                                         $14     
         26      > RETURN                                                   $14
    8    27*       FETCH_THIS                                       $15     
         28*       FETCH_OBJ_R                                      ~16     $15, 'salt'
         29*       ASSIGN                                                   !1, ~16
    9    30*     > RETURN                                                   null

End of function createpassword

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.38 ms | 1390 KiB | 22 Q