A simple php emulator