3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo 'Standard DES: ' . crypt('rasmuslerdorf', 'rl') . "\n"; echo 'Extended DES: ' . crypt('rasmuslerdorf', '_J9..rasm') . "\n"; echo 'MD5: ' . crypt('rasmuslerdorf', '$1$rasmusle$') . "\n"; echo 'Blowfish: ' . crypt('rasmuslerdorf', '$2a$07$usesomesillystringforsalt$') . "\n"; echo 'SHA-256: ' . crypt('rasmuslerdorf', '$5$rounds=10$usesomesillystringforsalt$') . "\n"; echo 'SHA-512: ' . crypt('rasmuslerdorf', '$6$rounds=10$usesomesillystringforsalt$') . "\n";
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Standard DES: rl.3StKT.4T8M Extended DES: _J9..rasmBYk8r9AiWNc MD5: $1$rasmusle$rISCgZzpwk3UhDidwXvin0 Blowfish: $2a$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi SHA-256: *0 SHA-512: *0
Output for 5.3.2 - 5.3.6, 5.3.8 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Standard DES: rl.3StKT.4T8M Extended DES: _J9..rasmBYk8r9AiWNc MD5: $1$rasmusle$rISCgZzpwk3UhDidwXvin0 Blowfish: $2a$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi SHA-256: $5$rounds=1000$usesomesillystri$tax.1bkwQupbKHi2vf9YW.EhRyrDc3plqrNrswXf132 SHA-512: $6$rounds=1000$usesomesillystri$HjCvpI.y.OobDcID9dgWXCgWs/IiFHrp08E8L.dk3EIhCkGCxRUinAAlLzum4MAjmlBXDY208uD6hQJyhKFKz/
Output for 5.3.7
Standard DES: rl.3StKT.4T8M Extended DES: _J9..rasmBYk8r9AiWNc MD5: $1$rasmusle Blowfish: $2a$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi SHA-256: $5$rounds=1000$usesomesillystri$tax.1bkwQupbKHi2vf9YW.EhRyrDc3plqrNrswXf132 SHA-512: $6$rounds=1000$usesomesillystri$HjCvpI.y.OobDcID9dgWXCgWs/IiFHrp08E8L.dk3EIhCkGCxRUinAAlLzum4MAjmlBXDY208uD6hQJyhKFKz/
Output for 5.3.0 - 5.3.1
Standard DES: rl.3StKT.4T8M Extended DES: _J9..rasmBYk8r9AiWNc MD5: $1$rasmusle$rISCgZzpwk3UhDidwXvin0 Blowfish: $2a$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi SHA-256: $537usIU8jOcU SHA-512: $6JnhHzz4wGE2
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17
Standard DES: rl.3StKT.4T8M
Process exited with code 139.

preferences:
287.43 ms | 402 KiB | 460 Q