3v4l.org

run code in 300+ PHP versions simultaneously
<?php $prg_id = "781657"; $firstresult = '0'; $key = 6606; $s = sprintf("%d", $prg_id); for($i = 0; $i < strlen($s); $i++) { $firstresult[$i] = chr(ord($s[$i]) ^ ($key>>8)); $key = (int)ord($firstresult[$i]) + (int)$key; $key = (int)($key * 74102); $key = (int)($key + 12337); } $ascii = $firstresult; $len = strlen($ascii); $result = ""; for ($i=0; $i<$len; $i++) $result.=sprintf("%02x",ord(substr($ascii,$i,1))); echo $result; echo ' / '; $hex = $result; $key = 6606; $result = ''; $len = strlen($hex); for ($i=0; $i<$len; $i+=2) $result.=sprintf("%s", chr(hexdec(substr($hex,$i,2)))); $firstresult = $result; $result = '0'; for($i=0; $i <= strlen($firstresult)-1; $i++) { $result[$i] = chr(ord($firstresult[$i]) ^ ($key>>8)); $key = (int)ord($firstresult[$i]) + (int)$key; $key = (int)($key * 74102); $key = (int)($key + 12337); } echo $result;
Output for git.master, git.master_jit, rfc.property-hooks
2e9eccde0507 / 781657

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:
57.92 ms | 401 KiB | 8 Q