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('salasana', '$6$qNElXs2yMnL2.GN') . "\n"; echo 'SHA-512: ' . crypt('salasana', '$6$rounds=99$') . "\n";
Output for 5.3.2 - 5.6.21, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
SHA-512: $6$rounds=1000$qNElXs2yMnL2.GNS$/q7trYkbKkoJernsumbObt2IysdXGRx/ytFaG0HBC97rHHhYRQvUcyEuRHP6h5yj8V.fH7XKEw5hjofVmYONw1 SHA-512: $6$qNElXs2yMnL2.GN$KDJCzDqTwci7DRaS9wtYqqyHljHnYjip.orbWkzw8DeI94u5UeN1dRCNhUFWk11.A/e4nN3Mlk6JYrCGhYgb9. SHA-512: $6$rounds=1000$$9YDHjhU2CtVdSCVlrok3ETg5GWVsb12QTDDQwM2fpcKc6AfFwTp/i3Bk22mxqZ3gLZM4iqavYeojmVqpB8uBD/
Output for 5.3.0 - 5.3.1
SHA-512: $67LnUJQ6bIYg SHA-512: $67LnUJQ6bIYg SHA-512: $67LnUJQ6bIYg
Output for 4.3.0 - 5.2.17
SHA-512: $6$rounds=10$qNElXs2yMnL2.GNS3kiM7DqmGbFLdQfIwu2691aJgT3xgJazPLtw7RPKz3Dp8RIc4b5fmJ7qvlq/mPN8a.rE40 SHA-512: $6$qNElXs2yM$oXaV9bE0wauChxbV2SwDNOySPWRBZCi7bcHI.inqmPuHdXd26xuaCW0Xo/nks.BLSgJFJgEZxcGNyu.o/1gp50 SHA-512: $6$rounds=99$k4JS.kJszyKEP17a3CiMh07Qk9mE1L0dLRg3EMDg/OscEnm4WqSPzK8EeuL1c1VkPFPv2QCj.6WVKgwMGrSHV0