Display the drop-down list

Test of password_hash()

Example #1 : test not validated (platform dependant or random result etc.)
Example #2 : test not validated (platform dependant or random result etc.)
Example #3 : test not validated (platform dependant or random result etc.)
Example #1
$input = [
  
=> 'rasmuslerdorf',
  
=> 'PASSWORD_DEFAULT',
]
test not validated (platform dependant or random result etc.)
$test_output = [
  
'result' => [
    
'string' => '$2y$10$gQkHj3QibWQ8Ch1q1tEXXeKTo9H/vcvxB4PogC2QIlvymRehZ61EC',
  ],
  
'php_version' => '7.1.30 Linux x86_64',
]
Example #2
$input = [
  
=> 'rasmuslerdorf',
  
=> 'PASSWORD_BCRYPT',
  
=> [
    
'cost' => 12,
  ],
]
test not validated (platform dependant or random result etc.)
$test_output = [
  
'result' => [
    
'string' => '$2y$12$BIljUpJx/WoIr36fmq8mOuxCBCZM0PYcnCZ5jWNnSoARjzicnfpSe',
  ],
  
'php_version' => '7.1.30 Linux x86_64',
]
Example #3
$input = [
  
=> 'test',
  
=> 'PASSWORD_BCRYPT',
  
=> [
    
'cost' => 8,
  ],
]
test not validated (platform dependant or random result etc.)
$test_output = [
  
'result' => [
    
'string' => '$2y$08$Y8hMaYpg7tz8iqu5yVRb9uDLLPWBFkfl7CbOZA/4bO/HgWBhhETvm',
  ],
  
'php_version' => '7.1.30 Linux x86_64',
]