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$0123456789abcdefghijk0')); var_dump(crypt('foo', '$2a$10$0123456789abcdefghijk1')); var_dump(crypt('foo', '$2a$10$0123456789abcdefghijk2')); var_dump(crypt('foo', '$2a$10$0123456789abcdefghijk3')); var_dump(crypt('foo', '$2a$10$0123456789abcdefghijk4')); var_dump(crypt('foo', '$2a$10$0123456789abcdefghijk5')); var_dump(crypt('foo', '$2a$10$0123456789abcdefghijk6')); var_dump(crypt('foo', '$2a$10$0123456789abcdefghijk7')); var_dump(crypt('foo', '$2a$10$0123456789abcdefghijk8')); var_dump(crypt('foo', '$2a$10$0123456789abcdefghijk9')); var_dump(crypt('foo', '$2a$10$0123456789abcdefghijk0')); var_dump(crypt('foo', '$2a$10$0123456789abcdefghijk.')); var_dump(crypt('foo', '$2a$10$0123456789abcdefghijk/')); var_dump(crypt('foo', '$2a$10$0123456789abcdefghijk$'));
Output for 5.5.24 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Output for 5.3.0 - 5.4.40, 5.4.42 - 5.4.45
string(60) "$2a$10$0123456789abcdefghijk.SaqSR4CjeGzfd.JT30zhIsL8YCvRmJ." 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" 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$0123456789abcdefghijk.PCjeBSDUNtxgIBbB9Al5ZaYCPbAio/m" string(60) "$2a$10$0123456789abcdefghijk.PCjeBSDUNtxgIBbB9Al5ZaYCPbAio/m" string(60) "$2a$10$0123456789abcdefghijk.SaqSR4CjeGzfd.JT30zhIsL8YCvRmJ."
Output for 5.4.41
string(60) "$2a$10$0123456789abcdefghijk.SaqSR4CjeGzfd.JT30zhIsL8YCvRmJ." 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" 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$0123456789abcdefghijk.PCjeBSDUNtxgIBbB9Al5ZaYCPbAio/m" string(60) "$2a$10$0123456789abcdefghijk.PCjeBSDUNtxgIBbB9Al5ZaYCPbAio/m"
Process exited with code 137.
Output for 4.3.0 - 5.2.17

Process exited with code 139.