3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_GET['str1'] = ["a"]; $_GET['str2'] = ["b"]; $salt = "aaabdnelnFnekknfn"; if($_GET['str1'] !== $_GET['str2'] and $_GET['str1'] and $_GET['str2']) { $hash1 = hash('sha256', $salt . $_GET['str1']); $hash2 = hash('sha256', $salt . $_GET['str2']); if($hash1 === $hash2) { var_dump($_GET['str1'],$_GET['str2']); } }

preferences:
27.3 ms | 405 KiB | 5 Q