3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $sum = 4; $result = ((10 - ($sum % 10)) % 10);
based on WeUfK
Output for 5.6.0 - 7.3.0alpha1