Implement cutter in php

maybe its faster, need to test it