3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $salt = md5(microtime(true)); $save_passwd = crypt('abcdefg', '$2y$07$'.$salt.'$'); $options = [ 'cost' => 7, 'salt' => $salt, ]; $fofo = $password_hash("abcdefg", PASSWORD_BCRYPT, $options); echo $fofo."\n"; echo $save_passwd.'\n'; $encrypt = crypt('abcdefg' , $save_passwd); echo $encrypt.'\n'; if($encrypt == $save_passwd) echo "잘되었으면좋겠네요시발~"; $p = '$6$rounds=5000$a0f2b3982ee93269$elwPV03aKLzE5/BvG374xvJ8IA4sSG/pc7YyDJ3Ud9seBBfFJaMY9kIqHwQhz9fJOJ3kQVJ6oPjp6G9T9pOCB'; if(password_verify('abcdefg', $p)){ echo "방가우ㅘ요아ㅐ"; } ?>
Output for 7.0.0 - 7.1.0
Notice: Undefined variable: password_hash in /in/FtilP on line 8 Fatal error: Uncaught Error: Function name must be a string in /in/FtilP:8 Stack trace: #0 {main} thrown in /in/FtilP on line 8
Process exited with code 255.
Output for 5.4.0 - 5.6.28, hhvm-3.10.0 - 3.12.0
Notice: Undefined variable: password_hash in /in/FtilP on line 8 Fatal error: Function name must be a string in /in/FtilP on line 8
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/FtilP on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '[' in /in/FtilP on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/FtilP on line 4
Process exited with code 255.