3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function encrypt($str) { $cryptedstr = ""; for ($i =0; $i < strlen($str); $i++) { $temp = ord(substr($str,$i,1)) ^ 192; while(strlen($temp)<3) { $temp = "0".$temp; } $cryptedstr .= $temp. ""; } return base64_encode($cryptedstr); } echo(encrypt("Admin ' and 1 = 0 -- "); >
Output for 5.3.0 - 5.4.15
Parse error: syntax error, unexpected ';' in /in/CopdW on line 18
Process exited with code 255.