3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo password_hash('foobar097300');
Output for 5.6.30, 7.0.0 - 7.2.9
Warning: password_hash() expects at least 2 parameters, 1 given in /in/p8jNV on line 3
Output for hhvm-3.22.0
Warning: password_hash() expects at least 2 parameters, 1 given in /in/p8jNV on line -1 Fatal error: Uncaught TypeError: Argument 2 passed to password_hash() must be an instance of int, undefined variable given in /in/p8jNV:-1 Stack trace: #0 /in/p8jNV(-1): password_hash() #1 {main}
Process exited with code 255.
Output for hhvm-3.15.4 - 3.21.3
Warning: password_hash() expects at least 2 parameters, 1 given in /in/p8jNV on line 3 Fatal error: Uncaught TypeError: Argument 2 passed to password_hash() must be an instance of int, undefined variable given in /in/p8jNV:3 Stack trace: #0 /in/p8jNV(3): password_hash() #1 {main}
Process exited with code 255.