3v4l.org

run code in 300+ PHP versions simultaneously
<?php $p =password_hash('aaa','sh1'); var_dump(password_verify ('aaa1', $p));
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/qY1i4 on line 2 bool(false)
Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.21
Warning: password_hash() expects parameter 2 to be long, string given in /in/qY1i4 on line 2 bool(false)

preferences:
69.12 ms | 401 KiB | 47 Q