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('cost'=>'111'))."\n";
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.24, 7.3.0 - 7.3.12
64e2feb3667d45737069736735f168a7 136953b6d8fc0072d306f8caa7098fc4d2c93e20 Warning: password_hash(): Invalid bcrypt cost parameter specified: 111 in /in/moEgL 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/moEgL 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/moEgL 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/moEgL 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/moEgL on line 6

preferences:
166.62 ms | 402 KiB | 263 Q