3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hash = '$2y$04$usesomesillystringfore7hnbRJHxXVLeakoG8K30oukPsA.ztMG'; $test = crypt("password", $hash); echo "$2y string: $test<br />"; $pass = ($test == $hash); echo "$2y test status: " . ( $pass ? "Pass" : "Fail") . "<br />"; $hash = '$2a$04$usesomesillystringfore7hnbRJHxXVLeakoG8K30oukPsA.ztMG'; $test = crypt("password", $hash); echo "$2a string: $test<br />"; $pass = ($test == $hash); echo "$2a test status: " . ( $pass ? "Pass" : "Fail") . "<br />"; $hash = '$2x$04$usesomesillystringfore7hnbRJHxXVLeakoG8K30oukPsA.ztMG'; $test = crypt("password", $hash); echo "$2x string: $test<br />"; $pass = ($test == $hash); echo "$2x test status: " . ( $pass ? "Pass" : "Fail") . "<br />";
Output for git.master, git.master_jit, rfc.property-hooks
$2y string: $2y$04$usesomesillystringfore7hnbRJHxXVLeakoG8K30oukPsA.ztMG<br />$2y test status: Pass<br />$2a string: $2a$04$usesomesillystringfore7hnbRJHxXVLeakoG8K30oukPsA.ztMG<br />$2a test status: Pass<br />$2x string: $2x$04$usesomesillystringfore7hnbRJHxXVLeakoG8K30oukPsA.ztMG<br />$2x test status: Pass<br />

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:
45.73 ms | 402 KiB | 8 Q