3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(crypt('pass', '$2a$10$N9qo8uLOickgx2ZMRZoMyeIjZAgcfl7p92ldGxad68LJZdL17lhWy')); var_dump(password_hash('password'));
based on 5cJrM
Output for 5.5.24 - 7.2.0
string(60) "$2a$10$N9qo8uLOickgx2ZMRZoMyeHdKFrSAcv.WcuKSErEt8uDGCiYkFkBq" Warning: password_hash() expects at least 2 parameters, 1 given in /in/ptts8 on line 5 NULL
Output for 5.3.18 - 5.4.45
string(60) "$2a$10$N9qo8uLOickgx2ZMRZoMyeHdKFrSAcv.WcuKSErEt8uDGCiYkFkBq" Fatal error: Call to undefined function password_hash() in /in/ptts8 on line 5
Process exited with code 255.