improve php compress
add unit test