3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo 'SHA-512: ' . crypt('salasana', '$6$rounds=10$qNElXs2yMnL2.GNS3kiM7DqmGbFLdQfIwu2691aJgT3xgJazPLtw7RPKz3Dp8RIc4b5fmJ7qvlq/mPN8a.rE40') . "\n"; echo 'SHA-512: ' . crypt('cubic00', '$2$') . "\n";
Output for 7.0.0 - 7.1.0
SHA-512: $6$rounds=1000$qNElXs2yMnL2.GNS$/q7trYkbKkoJernsumbObt2IysdXGRx/ytFaG0HBC97rHHhYRQvUcyEuRHP6h5yj8V.fH7XKEw5hjofVmYONw1 Deprecated: crypt(): Supplied salt is not valid for DES. Possible bug in provided salt format. in /in/6DmN4 on line 3 SHA-512: $2fCTfEWnICE2
Output for 5.3.2 - 5.6.28
SHA-512: $6$rounds=1000$qNElXs2yMnL2.GNS$/q7trYkbKkoJernsumbObt2IysdXGRx/ytFaG0HBC97rHHhYRQvUcyEuRHP6h5yj8V.fH7XKEw5hjofVmYONw1 SHA-512: $2fCTfEWnICE2
Output for 5.3.0 - 5.3.1
SHA-512: $67LnUJQ6bIYg SHA-512: $21KsPXs4dYfI
Output for 4.3.0 - 5.2.17
SHA-512: $6$rounds=10$qNElXs2yMnL2.GNS3kiM7DqmGbFLdQfIwu2691aJgT3xgJazPLtw7RPKz3Dp8RIc4b5fmJ7qvlq/mPN8a.rE40
Process exited with code 139.