3v4l.org

run code in 300+ PHP versions simultaneously
<?php //DOMANDA: 0x55 0x82 0x30 0x01 0x33 0x33 0x91 //RISPOSTA: 0x55 0x82 0xB0 0x01 0x00 0x05 0x72 function CheckSumCalculation($hex) { $dsum=0; for ($i=0; $i < strlen($hex)-1; $i+=2){ $dsum += hexdec($hex[$i].$hex[$i+1]); } $NotSum = ~$dsum; $ChkSum = substr(dechex($NotSum), -2); return $ChkSum; } $LstIA = array("64","65","66","67","68","69","6A","6B","6C"); foreach ($LstIA as &$addr) { $value = $addr * 2; $DXPcmd = "558210".$addr."3333"; $DXPcmd .= CheckSumCalculation($DXPcmd); print "<BR>".$DXPcmd; } ?>
Output for git.master, git.master_jit, rfc.property-hooks
<BR>5582106433334e<BR>5582106533334d<BR>5582106633334c<BR>5582106733334b<BR>5582106833334a<BR>55821069333349 Warning: A non-numeric value encountered in /in/S4mki on line 22 <BR>5582106A333348 Warning: A non-numeric value encountered in /in/S4mki on line 22 <BR>5582106B333347 Warning: A non-numeric value encountered in /in/S4mki on line 22 <BR>5582106C333346

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:
53.91 ms | 402 KiB | 8 Q