3v4l.org

run code in 300+ PHP versions simultaneously
<?php $user_input="My1sTpassword"; $password = crypt("My1sTpassword"); // let salt be generated /* Si dovrebbe passare l'intero risultato di crypt() come chiave di confronto della password per evitare problemi con differenti algoritmi di hash. (Come detto prima lo standard basato su DES usa chiavi di 2 caratteri, mentre lo standard basato su MD5 ne usa 12). */ if (crypt($user_input, $password) == $password) { echo "Password verified!"; } ?>
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught ArgumentCountError: crypt() expects exactly 2 arguments, 1 given in /in/k8pqn:3 Stack trace: #0 /in/k8pqn(3): crypt(Object(SensitiveParameterValue)) #1 {main} thrown in /in/k8pqn on line 3
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
35.06 ms | 401 KiB | 8 Q