3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $password = 'test'; // hash generated with PHP 5.3.7+ $hash = '$2y$14$MTIzNDU2Nzg5MDEyMzQ1NexAbOIUHkG6Ra.TK9QxHOVUhDxOe4dkW'; $result = crypt($password, $hash); printf("Hash %s (length %d)\n", $result, strlen($result));
Output for 5.3.7 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Hash $2y$14$MTIzNDU2Nzg5MDEyMzQ1NeWUUefVlefsTbFhsbqKFv/vPSZBrSFVm (length 60)
Output for 5.3.2 - 5.3.6
Hash $2rcByx51ejoM (length 13)
Output for 5.3.0 - 5.3.1
Hash $2vU67iv49YBo (length 13)
Output for 4.3.0 - 5.2.17

Process exited with code 139.