normalized p30 php solution