3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo 'SHA-512: ' . crypt('salasana', '$6$rounds=10$qNElXs2yMnL2.GNS3kiM7DqmGbFLdQfIwu2691aJgT3xgJazPLtw7RPKz3Dp8RIc4b5fmJ7qvlq/mPN8a.rE40') . "\n"; echo 'SHA-512: ' . crypt('salasana', '$6$qNElXs2yM') . "\n";
Output for 8.0.0
SHA-512: *0 SHA-512: $6$qNElXs2yM$oXaV9bE0wauChxbV2SwDNOySPWRBZCi7bcHI.inqmPuHdXd26xuaCW0Xo/nks.BLSgJFJgEZxcGNyu.o/1gp50
Output for 5.3.2 - 5.3.29, 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.5 - 7.2.33, 7.3.12 - 7.3.26, 7.4.0 - 7.4.14
SHA-512: $6$rounds=1000$qNElXs2yMnL2.GNS$/q7trYkbKkoJernsumbObt2IysdXGRx/ytFaG0HBC97rHHhYRQvUcyEuRHP6h5yj8V.fH7XKEw5hjofVmYONw1 SHA-512: $6$qNElXs2yM$oXaV9bE0wauChxbV2SwDNOySPWRBZCi7bcHI.inqmPuHdXd26xuaCW0Xo/nks.BLSgJFJgEZxcGNyu.o/1gp50
Output for 5.3.0 - 5.3.1
SHA-512: $67LnUJQ6bIYg SHA-512: $67LnUJQ6bIYg
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
SHA-512: $6$rounds=10$qNElXs2yMnL2.GNS3kiM7DqmGbFLdQfIwu2691aJgT3xgJazPLtw7RPKz3Dp8RIc4b5fmJ7qvlq/mPN8a.rE40 SHA-512: $6$qNElXs2yM$oXaV9bE0wauChxbV2SwDNOySPWRBZCi7bcHI.inqmPuHdXd26xuaCW0Xo/nks.BLSgJFJgEZxcGNyu.o/1gp50