3v4l.org

run code in 300+ PHP versions simultaneously
<form action="" method="post"> <input type="text" name="challenge"> <input type="submit" value="Generuj!"> </form> <?php if(!empty($_POST['challenge'])){ $challenge = $_POST['challenge']; $temp = ""; for($x=0;$x<8;$x++){ if(ord($challenge[$x]) <= 0x47){ $temp[$x] = chr(ord($challenge[$x])<<1); }else{ $temp[$x] = chr(ord($challenge[$x])>>1); } } $md5hash = hash('md5', implode('', $temp)); for($y=0;$y<8;$y++){ $byteHash[$y] = intval(substr($md5hash, $y*2, 2), 16); } $pass = ""; for($z=0;$z<8;$z++){ $tmp1 = ($byteHash[$z]>>1)*0xB60B60B7; $tmp1 = $tmp1>>(5+32); $tmp2 = $tmp1<<3; $tmp2 = $tmp2-($tmp1<<1); $tmp3 = $tmp2<<4; $tmp3 = $tmp3-$tmp2; $tmp4 = $byteHash[$z]-$tmp3+0x21; $tmp4 = $tmp4&0xFF; $pass .= (($tmp4 == 0x3F) ? chr(0x3E) : chr($tmp4)); } echo 'Pass: </br>'; echo $pass; } ?>
Output for 5.6.38, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
<form action="" method="post"> <input type="text" name="challenge"> <input type="submit" value="Generuj!"> </form>
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 <form action="" method="post"> <input type="text" name="challenge"> <input type="submit" value="Generuj!"> </form>

preferences:
205.27 ms | 402 KiB | 245 Q