3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $uid = 'sjdkjasdkgj'; $tokenheader = 1 << 8; $tokenheader |= WAP_LOGIN_IDC_NO << 4; $tokenheader |= strlen($uid); var_dump($tokenheader,decbin($tokenheader));
Output for 7.1.0
Notice: Use of undefined constant WAP_LOGIN_IDC_NO - assumed 'WAP_LOGIN_IDC_NO' in /in/mGEct on line 4 Warning: A non-numeric value encountered in /in/mGEct on line 4 int(267) string(9) "100001011"
Output for 4.3.0 - 7.0.14
Notice: Use of undefined constant WAP_LOGIN_IDC_NO - assumed 'WAP_LOGIN_IDC_NO' in /in/mGEct on line 4 int(267) string(9) "100001011"