3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $ntlmpacket= base64_decode( "TlRMTVNTUAACAAAADgAOADgAAAAVgoniFvduRcv1/b4AAAAAAAAAAJYAlgBGAAAABgGxHQAAAA9IAE8AUwBUAEkATgBHAAIADgBIAE8AUwBUAEkATgBHAAEAEABIAC0AQQBQAFAANAAyADMABAAWAGgAbwBzAHQAaQBuAGcALgBzAGMAYQADACgAaAAtAGEAcABwADQAMgAzAC4AaABvAHMAdABpAG4AZwAuAHMAYwBhAAUAFgBoAG8AcwB0AGkAbgBnAC4AcwBjAGEABwAIAHdK4ofuN9EBAAAAAA==" ); if((intval(substr($ntlmpacket, 8, 8))) == 3) { $B = substr($ntlmpacket, 28, 51); $dLen = ((intval(substr($B, 0, 0))) +((intval(substr($B, 1, 1)))*256)); $dOff = ((intval(substr($B, 4, 4))) +((intval(substr($B, 5, 5)))*256) +((intval(substr($B, 6, 6)))*(256*256)) +((intval(substr($B, 7, 7)))*(256*256*256))); $uLen = ((intval(substr($B, 8, 8))) +((intval(substr($B, 9, 9)))*256)); $wLen = ((intval(substr($B, 16, 16))) +((intval(substr($B, 17, 17)))*256)); echo "NTLM_Domain" + substr($ntlmpacket, $dOff, $dOff+$dLen-1 ); echo "NTLM_User" + substr($ntlmpacket, $dOff + $dLen, $dOff + $dLen + $uLen - 1 ); $start=$dOff + $dLen + $uLen; $end = $dOff + $dLen + $uLen + $wLen - 1; echo "NTLM_Workstation" + substr($ntlmpacket, $start, $end); } else { echo ":("; echo dump(substr($ntlmpacket, 8, 8)); }
based on 0d1EE
Output for 7.0.0 - 7.2.0
:( Fatal error: Uncaught Error: Call to undefined function dump() in /in/uDTue:36 Stack trace: #0 {main} thrown in /in/uDTue on line 36
Process exited with code 255.
Output for 5.3.20 - 5.6.28
:( Fatal error: Call to undefined function dump() in /in/uDTue on line 36
Process exited with code 255.