3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function decrypt($str, $key) { $iv = substr( md5("hacker",true), 0, 8 ); return mcrypt_decrypt(MCRYPT_RIJNDAEL_256, $salt, base64_decode($token), MCRYPT_MODE_CBC, $iv) method where $salt = $iv = 'DentalUKWebinars'; } $Validation = "4/lOF/4ZMmdPxlFjZD63nA=="; $key = "e79c4da4f94b86cba5a81ba39fed083dbaf8bce"; $msg = $text['felicitation'].decrypt(base64_decode($Validation),base64_encode($key)); echo "Le flag est: ".$msg; ?>
based on cLaMm
Output for 7.0.0 - 7.0.8
Parse error: syntax error, unexpected 'method' (T_STRING), expecting ';' in /in/dqvl5 on line 4
Process exited with code 255.
Output for 5.5.0 - 5.6.23
Parse error: syntax error, unexpected 'method' (T_STRING) in /in/dqvl5 on line 4
Process exited with code 255.