3v4l.org

run code in 300+ PHP versions simultaneously
<?php $nom = 'test renommage lot'; $nom = str_replace(' ', '-', $nom); $key = substr(sha1($nom), 0, 10).'D'; echo "key=$key";

preferences:
37.17 ms | 402 KiB | 5 Q