add ret ret0 and ret1 to php