3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(crypt('pass', '$2a$10$N9qo8uLOickgx2ZMRZoMyeIjZAgcfl7p92ldGxad68LJZdL17lhWy')); var_dump(password_hash('password'));
Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.21, 7.0.0 - 7.0.20, 7.1.0 - 7.1.25, 7.2.0 - 7.2.13, 7.3.0 - 7.3.1
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.4.1 - 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.

preferences:
121.87 ms | 401 KiB | 105 Q