3v4l.org

run code in 300+ PHP versions simultaneously
<?php class security { private function addSalt($pass) { $salt1='abcdefghijkl'; //OUR FIRST 12 CHAR SALT $salt2='opqrstuvwxyz'; //OUR 2ND 12 CHAR SALT $md5 = (md5($pass)); $hash1 = $salt1.$md5.$salt2;// SALT1-MD5-SALT2 COMBINED $hash2 = strrev($hash1); //WE FLIP-REVERSE THE HASH return $hash2;//CHANGE TO RETURN }//end func private function unSalt($pass2) { $a1 = substr($pass2, -44); // WE STRIP THE FIRST 12 CHAR SALT $b1 = strrev($a1); //WE UN-FLIP THE HASH return substr($b1, -32); // WE FETCH OUR ORIGINAL MD5 AND STRIP THE 2ND SALT }//end func }//end class $h = ''; $sc = new security; for ($i = 0; $i < 100; ++$i) { echo $sc->addSalt($i), "\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to private method security::addSalt() from global scope in /in/DSVN8:28 Stack trace: #0 {main} thrown in /in/DSVN8 on line 28
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
55.01 ms | 401 KiB | 8 Q