VOOT implementation in PHP