3v4l.org

run code in 300+ PHP versions simultaneously
<?php function digestPassword($password, $salt = null) { static $cryptPrefix = '$2y$10$'; return [ substr(crypt($password, $cryptPrefix . $salt . '$'), 7), substr(crypt($password, $cryptPrefix . $salt), 7), ]; } var_dump(digestPassword('foobar', 'jSzEr3UNlNP8CT4tDRSjr'));
Output for git.master, git.master_jit
array(2) { [0]=> string(53) "jSzEr3UNlNP8CT4tDRSjr.FWDN/FNsVSeas4OdUbPnePJzNEyjjkG" [1]=> string(0) "" }
Output for rfc.property-hooks
array(2) { [0]=> string(0) "" [1]=> string(0) "" }

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:
82.2 ms | 401 KiB | 8 Q