3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $hash = "{SSHA}j/r2/pEsrmd2fQUkcJ2wDkqhrK9hLmNvbDIxMDY="; $password = "&'(-_)=~#{[|`\^@]}"; $salt = substr(base64_decode(substr($hash,6)),20); echo $salt."\n"; $encrypted_password = '{SSHA}' . base64_encode(sha1( $password.$salt, TRUE ). $salt); echo $encrypted_password."\n"; vardump($encrypted_password == $hash);
based on GTQd8
Output for 7.0.0 - 7.2.0
a.col2106 {SSHA}j/r2/pEsrmd2fQUkcJ2wDkqhrK9hLmNvbDIxMDY= Fatal error: Uncaught Error: Call to undefined function vardump() in /in/LZ9t3:10 Stack trace: #0 {main} thrown in /in/LZ9t3 on line 10
Process exited with code 255.
Output for 5.3.21 - 5.6.28
a.col2106 {SSHA}j/r2/pEsrmd2fQUkcJ2wDkqhrK9hLmNvbDIxMDY= Fatal error: Call to undefined function vardump() in /in/LZ9t3 on line 10
Process exited with code 255.