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 7.0.0 - 7.0.8
Parse error: syntax error, unexpected 'method' (T_STRING), expecting ';' in /in/cLaMm on line 4
Process exited with code 255.
Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.37, 5.6.0 - 5.6.23
Parse error: syntax error, unexpected 'method' (T_STRING) in /in/cLaMm 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.29
Parse error: syntax error, unexpected T_STRING in /in/cLaMm on line 4
Process exited with code 255.
Output for 4.3.0 - 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 T_STRING in /in/cLaMm on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/cLaMm on line 4
Process exited with code 255.

preferences:
261.27 ms | 1395 KiB | 205 Q