added support for segment with PHP and ruby version [MT]