3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = 'test)`; echo "test";#'; $test = str_replace(['$'], ['\\\\$'], $test); echo 'usermod -p `perl -e \'print crypt("' . $test . '","Sa")\'` ';
Output for 8.1.34, 8.2.27 - 8.2.30, 8.3.0 - 8.3.29, 8.4.1 - 8.4.16, 8.5.0 - 8.5.1
usermod -p `perl -e 'print crypt("test)`; echo "test";#","Sa")'`

preferences:
65.61 ms | 406 KiB | 5 Q