Using PHP's crypt function as follows, I can do a sha256 hash with salt and multiple rounds.
php -r "echo crypt('foo','\$5\$rounds=5000\$saltsaltsaltsalt');"
produces:
$5$rounds=5000$saltsaltsaltsalt$5RbfsOruKYb8v7hGn29A.I91maopNeJ2nIFH.SIEnSC
How can I perform this exact process (and/or validate a hash) using the OpenSSL command line program?