MOD for PHP below 5.4