3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if (version_compare(PHP_VERSION, '5.5', '>=')) { return; } var_dump(crypt('foo', '$2a$10$0123456789abcdefghijk')); var_dump(crypt('foo', '$2a$10$0123456789abcdefghijka')); var_dump(crypt('foo', '$2a$10$0123456789abcdefghijkb')); var_dump(crypt('foo', '$2a$10$0123456789abcdefghijkc')); var_dump(crypt('foo', '$2a$10$0123456789abcdefghijkd')); var_dump(crypt('foo', '$2a$10$0123456789abcdefghijke')); var_dump(crypt('foo', '$2a$10$0123456789abcdefghijkf')); var_dump(crypt('foo', '$2a$10$0123456789abcdefghijkg')); var_dump(crypt('foo', '$2a$10$0123456789abcdefghijkh')); var_dump(crypt('foo', '$2a$10$0123456789abcdefghijki')); var_dump(crypt('foo', '$2a$10$0123456789abcdefghijkj')); var_dump(crypt('foo', '$2a$10$0123456789abcdefghijkk')); var_dump(crypt('foo', '$2a$10$0123456789abcdefghijkl')); var_dump(crypt('foo', '$2a$10$0123456789abcdefghijkm')); var_dump(crypt('foo', '$2a$10$0123456789abcdefghijkn')); var_dump(crypt('foo', '$2a$10$0123456789abcdefghijko')); var_dump(crypt('foo', '$2a$10$0123456789abcdefghijkp')); var_dump(crypt('foo', '$2a$10$0123456789abcdefghijkq')); var_dump(crypt('foo', '$2a$10$0123456789abcdefghijkr')); var_dump(crypt('foo', '$2a$10$0123456789abcdefghijks')); var_dump(crypt('foo', '$2a$10$0123456789abcdefghijkt')); var_dump(crypt('foo', '$2a$10$0123456789abcdefghijku')); var_dump(crypt('foo', '$2a$10$0123456789abcdefghijkv')); var_dump(crypt('foo', '$2a$10$0123456789abcdefghijkw')); var_dump(crypt('foo', '$2a$10$0123456789abcdefghijkx')); var_dump(crypt('foo', '$2a$10$0123456789abcdefghijky')); var_dump(crypt('foo', '$2a$10$0123456789abcdefghijkz'));
Output for 5.5.24 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Output for 5.4.42, 5.4.45
string(60) "$2a$10$0123456789abcdefghijk.SaqSR4CjeGzfd.JT30zhIsL8YCvRmJ." string(60) "$2a$10$0123456789abcdefghijkOQyvqE3kxxLqF.gfV2Wrb73YKCgyA/yO" string(60) "$2a$10$0123456789abcdefghijkOQyvqE3kxxLqF.gfV2Wrb73YKCgyA/yO" string(60) "$2a$10$0123456789abcdefghijkOQyvqE3kxxLqF.gfV2Wrb73YKCgyA/yO" string(60) "$2a$10$0123456789abcdefghijkOQyvqE3kxxLqF.gfV2Wrb73YKCgyA/yO" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkuk28TXnI7Kfdncm.Lwo719lefZsAjrDO" string(60) "$2a$10$0123456789abcdefghijkuk28TXnI7Kfdncm.Lwo719lefZsAjrDO" string(60) "$2a$10$0123456789abcdefghijkuk28TXnI7Kfdncm.Lwo719lefZsAjrDO"
Process exited with code 137.
Output for 5.3.0 - 5.4.37, 5.4.40, 5.4.44
string(60) "$2a$10$0123456789abcdefghijk.SaqSR4CjeGzfd.JT30zhIsL8YCvRmJ." string(60) "$2a$10$0123456789abcdefghijkOQyvqE3kxxLqF.gfV2Wrb73YKCgyA/yO" string(60) "$2a$10$0123456789abcdefghijkOQyvqE3kxxLqF.gfV2Wrb73YKCgyA/yO" string(60) "$2a$10$0123456789abcdefghijkOQyvqE3kxxLqF.gfV2Wrb73YKCgyA/yO" string(60) "$2a$10$0123456789abcdefghijkOQyvqE3kxxLqF.gfV2Wrb73YKCgyA/yO" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkuk28TXnI7Kfdncm.Lwo719lefZsAjrDO" string(60) "$2a$10$0123456789abcdefghijkuk28TXnI7Kfdncm.Lwo719lefZsAjrDO" string(60) "$2a$10$0123456789abcdefghijkuk28TXnI7Kfdncm.Lwo719lefZsAjrDO" string(60) "$2a$10$0123456789abcdefghijkuk28TXnI7Kfdncm.Lwo719lefZsAjrDO" string(60) "$2a$10$0123456789abcdefghijkuk28TXnI7Kfdncm.Lwo719lefZsAjrDO" string(60) "$2a$10$0123456789abcdefghijkuk28TXnI7Kfdncm.Lwo719lefZsAjrDO"
Output for 5.4.38, 5.4.43
string(60) "$2a$10$0123456789abcdefghijk.SaqSR4CjeGzfd.JT30zhIsL8YCvRmJ." string(60) "$2a$10$0123456789abcdefghijkOQyvqE3kxxLqF.gfV2Wrb73YKCgyA/yO" string(60) "$2a$10$0123456789abcdefghijkOQyvqE3kxxLqF.gfV2Wrb73YKCgyA/yO" string(60) "$2a$10$0123456789abcdefghijkOQyvqE3kxxLqF.gfV2Wrb73YKCgyA/yO" string(60) "$2a$10$0123456789abcdefghijkOQyvqE3kxxLqF.gfV2Wrb73YKCgyA/yO" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkuk28TXnI7Kfdncm.Lwo719lefZsAjrDO" string(60) "$2a$10$0123456789abcdefghijkuk28TXnI7Kfdncm.Lwo719lefZsAjrDO" string(60) "$2a$10$0123456789abcdefghijkuk28TXnI7Kfdncm.Lwo719lefZsAjrDO" string(60) "$2a$10$0123456789abcdefghijkuk28TXnI7Kfdncm.Lwo719lefZsAjrDO"
Process exited with code 137.
Output for 5.4.41
string(60) "$2a$10$0123456789abcdefghijk.SaqSR4CjeGzfd.JT30zhIsL8YCvRmJ." string(60) "$2a$10$0123456789abcdefghijkOQyvqE3kxxLqF.gfV2Wrb73YKCgyA/yO" string(60) "$2a$10$0123456789abcdefghijkOQyvqE3kxxLqF.gfV2Wrb73YKCgyA/yO" string(60) "$2a$10$0123456789abcdefghijkOQyvqE3kxxLqF.gfV2Wrb73YKCgyA/yO" string(60) "$2a$10$0123456789abcdefghijkOQyvqE3kxxLqF.gfV2Wrb73YKCgyA/yO" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m"
Process exited with code 137.
Output for 5.4.39
string(60) "$2a$10$0123456789abcdefghijk.SaqSR4CjeGzfd.JT30zhIsL8YCvRmJ." string(60) "$2a$10$0123456789abcdefghijkOQyvqE3kxxLqF.gfV2Wrb73YKCgyA/yO" string(60) "$2a$10$0123456789abcdefghijkOQyvqE3kxxLqF.gfV2Wrb73YKCgyA/yO" string(60) "$2a$10$0123456789abcdefghijkOQyvqE3kxxLqF.gfV2Wrb73YKCgyA/yO" string(60) "$2a$10$0123456789abcdefghijkOQyvqE3kxxLqF.gfV2Wrb73YKCgyA/yO" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkeCIv/t.brtdc366kaN8FRS/T5ziHMg0m" string(60) "$2a$10$0123456789abcdefghijkuk28TXnI7Kfdncm.Lwo719lefZsAjrDO"
Process exited with code 137.
Output for 4.3.0 - 5.2.17

Process exited with code 139.