3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password = "password"; $iterations = 1000; // Generate a random IV using mcrypt_create_iv(), // openssl_random_pseudo_bytes() or another suitable source of randomness $salt = mcrypt_create_iv(16, MCRYPT_DEV_URANDOM); echo $salt; $hash = hash_pbkdf2("sha256", $password, $salt, $iterations, 20); echo $hash;
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined function mcrypt_create_iv() in /in/HYKMg:7 Stack trace: #0 {main} thrown in /in/HYKMg on line 7
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:
57.5 ms | 401 KiB | 8 Q