3.3v to 5v inverter by bc547

I would assume it is a software simulation. In reality the MOSFET version doesn't result in those peaks.