3v4l.org

run code in 300+ PHP versions simultaneously
<?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; ?>
Output for 8.0.0 - 8.0.18, 8.1.0 - 8.1.5
Parse error: syntax error, unexpected identifier "method", expecting ";" in /in/dqvl5 on line 4
Process exited with code 255.
Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.34, 7.3.0 - 7.3.33, 7.4.0 - 7.4.29
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.5.38, 5.6.0 - 5.6.40
Parse error: syntax error, unexpected 'method' (T_STRING) in /in/dqvl5 on line 4
Process exited with code 255.

preferences:
293.51 ms | 940 KiB | 278 Q