Pennsylvania's statutes, including the criminal statutes, are available online in an unofficial version. I am not aware of a free official version.