You want to write emulator using the new (for you) language? It would be hard to do. Ofc, it isn't possible with php, but idk. Its better to learn language first on small programs, only then start a big one (emulator).
This tutorials are good for me (but im not sure that this are the best). Atm, im trying to learn how to code. Idk where should I start but i'll try to work with this but if someone knew a better tutorial for beginners please let me know.