3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_export(password_hash('123', 'PASSWORD_DEFAULT'));
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.6
Warning: password_hash() expects parameter 2 to be integer, string given in /in/E2fIG on line 3 NULL
Output for 5.5.0 - 5.5.36, 5.6.0 - 5.6.28
Warning: password_hash() expects parameter 2 to be long, string given in /in/E2fIG on line 3 NULL

preferences:
86.7 ms | 402 KiB | 82 Q