3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $password = 'boegaboe'; $base_salt = '0123456789ABCDEFGHIJK'; $alphabet = './ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghjiklmnopqrstuvwxyz0123456789';//var_dump($alphabet); for ($i = 0; $i < 64; $i++) { $salt = $base_salt . $alphabet[$i]; $hash = password_hash($password, PASSWORD_DEFAULT, ['cost' => 4, 'salt' => $salt]); echo printf('#02d %s', $i, $hash), PHP_EOL; //var_dump(bin); }
based on ivfaE
Output for 7.0.0 - 7.1.0
Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 06 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 16 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 26 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 36 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 46 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 56 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 66 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 76 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 86 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 96 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 107 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 117 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 127 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 137 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 147 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 157 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 167 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 177 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 187 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 197 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 207 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 217 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 227 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 237 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 247 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 257 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 267 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 277 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 287 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 297 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 307 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 317 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 327 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 337 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 347 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 357 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 367 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 377 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 387 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 397 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 407 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 417 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 427 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 437 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 447 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 457 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 467 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 477 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 487 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 497 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 507 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 517 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 527 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 537 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 547 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 557 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 567 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 577 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 587 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 597 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 607 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 617 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 627 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/IDrU3 on line 10 #02d 637
Output for 5.5.24 - 5.6.28, hhvm-3.10.0 - 3.12.0
#02d 06 #02d 16 #02d 26 #02d 36 #02d 46 #02d 56 #02d 66 #02d 76 #02d 86 #02d 96 #02d 107 #02d 117 #02d 127 #02d 137 #02d 147 #02d 157 #02d 167 #02d 177 #02d 187 #02d 197 #02d 207 #02d 217 #02d 227 #02d 237 #02d 247 #02d 257 #02d 267 #02d 277 #02d 287 #02d 297 #02d 307 #02d 317 #02d 327 #02d 337 #02d 347 #02d 357 #02d 367 #02d 377 #02d 387 #02d 397 #02d 407 #02d 417 #02d 427 #02d 437 #02d 447 #02d 457 #02d 467 #02d 477 #02d 487 #02d 497 #02d 507 #02d 517 #02d 527 #02d 537 #02d 547 #02d 557 #02d 567 #02d 577 #02d 587 #02d 597 #02d 607 #02d 617 #02d 627 #02d 637
Output for 5.4.0 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/IDrU3 on line 10
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/IDrU3 on line 10
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '[' in /in/IDrU3 on line 10
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/IDrU3 on line 10
Process exited with code 255.