commit php practice code