3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $v = '10155674128355111'; if (strlen($v) > 9) { echo (int)((int)substr($v, 0, 9) % 6 . substr($v, 9)) % 6; } else { echo (int)$v % 6; }
based on IUXnj
Output for 4.3.0 - 7.3.0rc4
5