3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pass = 'oker'; echo md5($pass)."\n"; echo sha1($pass)."\n"; echo password_hash($pass, PASSWORD_BCRYPT, array('salt'=>'111'))."\n";
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.25, 7.3.0 - 7.3.12, 7.4.0
64e2feb3667d45737069736735f168a7 136953b6d8fc0072d306f8caa7098fc4d2c93e20 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/R0iUN on line 6 Warning: password_hash(): Provided salt is too short: 3 expecting 22 in /in/R0iUN on line 6
Output for 5.5.0 - 5.5.36, 5.6.0 - 5.6.28
64e2feb3667d45737069736735f168a7 136953b6d8fc0072d306f8caa7098fc4d2c93e20 Warning: password_hash(): Provided salt is too short: 3 expecting 22 in /in/R0iUN on line 6
Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45
64e2feb3667d45737069736735f168a7 136953b6d8fc0072d306f8caa7098fc4d2c93e20 Fatal error: Call to undefined function password_hash() in /in/R0iUN on line 6
Process exited with code 255.
Output for 4.4.5 - 4.4.9
64e2feb3667d45737069736735f168a7 136953b6d8fc0072d306f8caa7098fc4d2c93e20 Fatal error: Call to undefined function: password_hash() in /in/R0iUN on line 6
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.4
64e2feb3667d45737069736735f168a7 136953b6d8fc0072d306f8caa7098fc4d2c93e20 Fatal error: Call to undefined function: password_hash() in /in/R0iUN on line 6
Process exited with code 255.
Output for 4.3.0 - 4.3.1
64e2feb3667d45737069736735f168a7 136953b6d8fc0072d306f8caa7098fc4d2c93e20 Fatal error: Call to undefined function: password_hash() in /in/R0iUN on line 6

preferences:
174.65 ms | 401 KiB | 258 Q