3v4l.org

run code in 300+ PHP versions simultaneously
<?php $salt = md5(microtime(true)); $save_passwd = crypt('abcdefg', '$2y$07$'.$salt.'$'); $options = [ 'cost' => 7, 'salt' => $salt, ]; $password_hash('abcdefg', PASSWORD_BCRYPT, $options); 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.0.20, 7.1.0 - 7.1.7
Notice: Undefined variable: password_hash in /in/9blNk on line 8 Fatal error: Uncaught Error: Function name must be a string in /in/9blNk:8 Stack trace: #0 {main} thrown in /in/9blNk on line 8
Process exited with code 255.
Output for 5.4.18 - 5.4.45, 5.5.24 - 5.5.35, 5.6.7 - 5.6.28
Notice: Undefined variable: password_hash in /in/9blNk on line 8 Fatal error: Function name must be a string in /in/9blNk on line 8
Process exited with code 255.
Output for 5.4.0 - 5.4.17
Notice: Undefined variable: password_hash in /in/2O0i4 on line 8 Fatal error: Function name must be a string in /in/2O0i4 on line 8
Process exited with code 255.
Output for 5.3.28 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/9blNk on line 4
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.27
Parse error: syntax error, unexpected '[' in /in/2O0i4 on line 4
Process exited with code 255.
Output for 4.3.1, 4.3.5 - 4.3.11, 4.4.0 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '[' in /in/2O0i4 on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/2O0i4 on line 4
Process exited with code 255.
Output for 4.3.0
Parse error: parse error, unexpected '[' in /in/9blNk on line 4
Process exited with code 255.

preferences:
158.03 ms | 401 KiB | 174 Q