3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo "hi"; $hash = '$2y$10$ySjjzBzGZEWAFWqYNxMLQ.XYJIsS3/gnIKU2zg5HrJ1m9mZoOCfTu'; if (password_hash('c2b0bc68142c68186eade8dc8b31baae2242fcbe35ad4a93341cf24549f605b1', $hash)) { echo "Valido"; } else { echo 'Invalid password.'; } ?>
based on 4tEUT
Output for 7.0.0 - 7.2.0
hi Warning: password_hash() expects parameter 2 to be integer, string given in /in/UhoKY on line 5 Invalid password.
Output for 5.5.24 - 5.6.28
hi Warning: password_hash() expects parameter 2 to be long, string given in /in/UhoKY on line 5 Invalid password.
Output for 5.3.20 - 5.4.45
hi Fatal error: Call to undefined function password_hash() in /in/UhoKY on line 5
Process exited with code 255.