3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php public static function OHash($sText) { // Define static crypto vars $sSalt = '-zZSiD_q15_--T19ta2TdD8-eLc0r_4s'; $sHMAC = 'ob__8_3_0L5qQ--7XE-tJ-_v781Y-42t'; return hash_hmac('sha512', $sSalt . $sText, $sHMAC); } echo OHash('killer');
Output for 5.4.0 - 5.4.24
Parse error: syntax error, unexpected 'public' (T_PUBLIC) in /in/c4Xud on line 2
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_PUBLIC in /in/c4Xud on line 2
Process exited with code 255.