3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo $sSalt = '$2a$10$1234567890123456789012$'; echo "\n"; echo $sHash = crypt('abcd', $sSalt); echo "\n" , crypt('abcd', $sHash);
based on n0cNW

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for Typed properties v2
$2a$10$1234567890123456789012$ $2a$10$123456789012345678901un0/v4am9/hxO7N/.2oJUarUgaEFp70q $2a$10$123456789012345678901un0/v4am9/hxO7N/.2oJUarUgaEFp70q
Output for Arrow functions
$2a$10$1234567890123456789012$ $2a$10$123456789012345678901un0/v4am9/hxO7N/.2oJUarUgaEFp70q $2a$10$123456789012345678901un0/v4am9/hxO7N/.2oJUarUgaEFp70q
Output for Object typehint
$2a$10$1234567890123456789012$ $2a$10$123456789012345678901un0/v4am9/hxO7N/.2oJUarUgaEFp70q $2a$10$123456789012345678901un0/v4am9/hxO7N/.2oJUarUgaEFp70q
Output for Array change keys
$2a$10$1234567890123456789012$ $2a$10$123456789012345678901un0/v4am9/hxO7N/.2oJUarUgaEFp70q $2a$10$123456789012345678901un0/v4am9/hxO7N/.2oJUarUgaEFp70q
Output for Lexical anon
$2a$10$1234567890123456789012$ $2a$10$123456789012345678901un0/v4am9/hxO7N/.2oJUarUgaEFp70q $2a$10$123456789012345678901un0/v4am9/hxO7N/.2oJUarUgaEFp70q

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